Defaults Chooser 0.8

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#21 Post by sc0ttman »

Eyes-Only wrote:Thanks for this very neat little app sc0ttman! Puppy has truly needed something like this for a very long time!
Cheers!/Amicalement!

Eyes-Only
"L'Peau-Rouge d'Acadie"
Merci! (that's all the French I know..) And you're welcome..

I agree, it's a pain in the ass to edit the default*** scripts all the time!!
Glad to know someone is using and enjoying it! :D
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#22 Post by sc0ttman »

updated to 0.5
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#23 Post by sc0ttman »

Updated to 0.7, more apps added, more fixes... Still loads at same speed on my PC :) Still no default chat though, sorry Makoto!
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#24 Post by sc0ttman »

updated to 0.8 see main post
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Tman
Posts: 808
Joined: Sat 22 Jan 2011, 21:39
Location: Toronto

much thanks

#25 Post by Tman »

This app has 2 qualities which I really love, it's tiny and it is very handy.
Thank You, sc0ttman.

I did notice that the option for default music player was not working properly, in Wary and Lucid Pup, so I took the liberty of modifying your pet (slightly). It can be found here:

http://smokey01.com/Tman/apps/defaults- ... atched.pet

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

defaults-chooser .. translations wanted please

#26 Post by sc0ttman »

Thanks Tman.. Glad you like it.

Just to note, as this is now included in Woof, I thought I'd get round to finishing off my latest version, which I am cooking at the moment.. With defaultaudioplayer supported, and a few other fixes, its a bit quicker too.

More importantly, it has also been i18n'd (internationalised)..
So.. I kindly request some translations for the following:

Code: Select all

# english
Loc_app_name="Default Applications Chooser"
Loc_main_text="Choose your preferred default programs and applications, which you can then launch from your start menu or desktop."
Loc_main_tooltip="Choose your preferred default program"

Loc_audiomixer="Audio Mixer"
Loc_barehtml="Bare HTML Viewer"
Loc_browser="Web Browser"
Loc_calendar="Calendar"
Loc_connect="Connect"
Loc_contact="Contact"
Loc_drawing="Drawing"
Loc_email="Email"
Loc_htmleditor="HTML Editor"
Loc_htmlviewer="HTML Viewer"
Loc_imageeditor="Image Editor"
Loc_imageviewer="Image Viewer"
Loc_mediaplayer="Media Player"
Loc_musicplayer="Music Player"
Loc_paint="Paint"
Loc_search="Search"
Loc_spreadsheet="Spreadsheet"
Loc_texteditor="Text Editor"
Loc_textviewer="Text Viewer"
Loc_wordprocessor="Word Processor"

Loc_update_btn="Update"
Loc_help_btn="Help"
Loc_quit_btn="Quit"

Loc_help_title="Helpful Tips"
Loc_help_text1="You can add custom commands, parameters and options by typing the desired command in the chosen field and clicking the update button."
Loc_help_text2="To load apps through the terminal, simply add \"rxvt -e \" before the command you wish to execute in the terminal"
Loc_help_text3="Example: \"rxvt -e mp\" will load the terminal based editor, called \"MP\""
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#27 Post by technosaurus »

Have you considered adding console fallbacks?

for example

Code: Select all

[ $DISPLAY ] && DEFAULTTEXTEDITOR=$DESKTOPTEXTEDITOR || DEFAULTTEXTEDITOR=$CONSOLETEXTEDITOR

DEFAULTTEXTEDITOR $@
#mine would be geany and mp btw ... not geek enough yet to be vim/vi :)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#28 Post by sc0ttman »

technosaurus wrote:Have you considered adding console fallbacks?

for example

Code: Select all

[ $DISPLAY ] && DEFAULTTEXTEDITOR=$DESKTOPTEXTEDITOR || DEFAULTTEXTEDITOR=$CONSOLETEXTEDITOR

DEFAULTTEXTEDITOR $@
#mine would be geany and mp btw ... not geek enough yet to be vim/vi :)
No.. the amount of decent CLI apps included by default is pretty poor in general, isn't it? Cos to my system, I felt the need to manually add mc, elinks, transmissioncli, vlc_nogui, CLInet, pmirc, etc, etc..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#29 Post by bigpup »

Tried the .08 version in Lucid Puppy 5.2.8
Only problem is some programs do not show in drop-down menus, but you can manually input program name into item entry slot and it works to change default to that program.
Example:
libreoffice under wordproccesor
gnome-mplayer under media player

Just seems to not completely gather info on what programs are installed.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#30 Post by sc0ttman »

yes bigpup, it does not search but assumes as it tended to be much faster, when tested against the code snippets used around to get info from .desktop files... Although I do know that I found a snippet somewhere since which does it really quick...

the script is REALLY easy to change - just look in /usr/bin/defaults-chooser

Then you can edit the list of apps and add or remove anything you like. :)

Anyway, then latest version I have installed on mine has way more apps, fixed the gnome-mplayer entry, added libreoffice, and many more apps... It is also i18n'd.. I will post it here soon... I already a slightly older one, with a few fixes missing in the Slacko RC thread.. But it seems not to have made it into Slacko :(
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#31 Post by vicmz »

:!: Four-language combo -- Español, Português, Français, Italiano

:?: Just to make sure, 'bare' as in 'bare HTML viewer' means 'plain' or 'without format', right?

The translations

:arrow: Spanish

Code: Select all

# spanish
Loc_app_name="Seleccionar Aplicaciones Predefinidas"
Loc_main_text="Elija sus programas y aplicaciones predefinidas favoritas, las cuales podrá lanzar desde su menú de inicio o el escritorio."
Loc_main_tooltip="Elija su programa predefinido favorito"

Loc_audiomixer="Mezclador de Sonido"
Loc_barehtml="Visor HTML Sin Formato"
Loc_browser="Navegador Web"
Loc_calendar="Calendario"
Loc_connect="Conectar"
Loc_contact="Contacto"
Loc_drawing="Dibujo Vectorial"
Loc_email="Correo"
Loc_htmleditor="Editor HTML"
Loc_htmlviewer="Visor HTML"
Loc_imageeditor="Editor de Imágenes"
Loc_imageviewer="Visor de Imágenes"
Loc_mediaplayer="Reproductor Multimedia"
Loc_musicplayer="Reproductor de Sonido"
Loc_paint="Retocar Fotos"
Loc_search="Búsqueda"
Loc_spreadsheet="Hoja de Cálculo"
Loc_texteditor="Editor de Texto"
Loc_textviewer="Visor de Texto"
Loc_wordprocessor="Procesador de Texto"

Loc_update_btn="Actualizar"
Loc_help_btn="Ayuda"
Loc_quit_btn="Salir"

Loc_help_title="Consejos Útiles"
Loc_help_text1="Puede agregar comandos personalizados, parámetros y opciones escribiendo el comando deseado en el campo elegido y pulsando el botón Actualizar."
Loc_help_text2="Para cargar aplicaciones a través del terminal, simplemente agregue \"rxvt -e \" antes del comando que desea ejecutar en el terminal"
Loc_help_text3="Ejemplo: \"rxvt -e mp\" carga el editor basado en terminal, llamado \"MP\""
:arrow: Portuguese

Code: Select all

# portuguese
Loc_app_name="Selecionar Aplicativos Padrão"
Loc_main_text="Escolha seus programas e aplicativos padrão favoritos, os quais podrá lançar desde seu menu de início ou a
Last edited by vicmz on Wed 25 Jan 2012, 05:26, edited 1 time in total.

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#32 Post by vicmz »

Regarding supported apps, could you please include DeaDBeeF and Pidgin? I'd also like to know where shall the locale files be placed and under what name/extension. I'm using Slacko 5.3.1 :D

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#33 Post by sc0ttman »

vicmz wrote:Regarding supported apps, could you please include DeaDBeeF and Pidgin? I'd also like to know where shall the locale files be placed and under what name/extension. I'm using Slacko 5.3.1 :D
Thanks for the translations!! Good stuff... I already have an updated version with spanish and french, not sure how correct the translation are though..

Also, you can save the translations in /usr/share/locale/*/LC_MESSAGES/defaults-chooser.mo... Thanks for your work..

I think deadbeef *is* already be supported, but the .pet you used installs to /opt/deadbeef-0.5.1/, which is not a standard dir to check for apps...
So, you need to symlink deadbeef to /usr/bin or /usr/local/bin

Copy and paste this into your terminal:

Code: Select all

ln -s  /opt/bin/deadbeef-0.5.1/deadbeef /usr/bin/deadbeef
(middle-click or shift+insert to paste into terminal)

then it will work for you ;)

But about adding pidgin - there is no default chat entry - so where should I put pidgin??
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#34 Post by vicmz »

sc0ttman wrote: Also, you can save the translations in /usr/share/locale/*/LC_MESSAGES/defaults-chooser.mo...
How can I generate the .mo file?
sc0ttman wrote: I think deadbeef *is* already supported, but the .pet you used installs to /opt/deadbeef-0.5.1/, which is not a standard dir to check for apps...
So, you need to symlink deadbeef to /usr/bin or /usr/local/bin

Copy and paste this into your terminal:

Code: Select all

ln -s  /opt/bin/deadbeef-0.5.1/deadbeef /usr/bin/deadbeef
(middle-click or shift+insert to paste into terminal)

then it will work for you ;)
Sorry, it didn't work. Maybe the fact that UTF-8 is turned on has something to do. Not a big deal anyway :lol:, there's the "Set run action" option in the right click menu, or I can also try another .pet for deadbeef. I just wanted a way to set defaults without right-clicking every file-format individually :roll:. Also, I'm not sure if this (clicking every file-format individually) will remain in my remaster.
sc0ttman wrote: But about adding pidgin - there is no default chat entry - so where should I put pidgin??
OK, then I shall find another way to set Pidgin as default. The Hispan use instant messaging rather than IRC chat, which they rarely know what is about, so when I make my remaster I want to include Pidgin as default for chat.

:!: EDIT

I edited /usr/local/bin/defaultchat changing exec xchat to exec pidgin. Pidgin is now default for me :lol:

But I still think it's a great idea to have something like Defaults Chooser, you can manage default programs from a single window and it's also easier for newbies. I'm looking forward to the NLS .pet

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#35 Post by vicmz »

sc0ttman wrote:I already have an updated version with spanish and french, not sure how correct the translation are though..
If the French locale was made by a French person, don't worry, studying languages and computer skills are very important in Europe, they take this seriously at schools. As for the Hispan, we're usually not as much interested in translating something as in having someone else translate what we want :lol: that's why Spanish locales made by average users need some proof-read more often than other languages, but as long as it wasn't done by copy & paste from Google Translate I think you can trust the locale is good.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#36 Post by sc0ttman »

vicmz wrote:
sc0ttman wrote:I already have an updated version with spanish and french, not sure how correct the translation are though..
If the French locale was made by a French person, don't worry, studying languages and computer skills are very important in Europe, they take this seriously at schools. As for the Hispan, we're usually not as much interested in translating something as in having someone else translate what we want :lol: that's why Spanish locales made by average users need some proof-read more often than other languages, but as long as it wasn't done by copy & paste from Google Translate I think you can trust the locale is good.
I'll upload my latest soon...

By the way, I forgot to say, that after you have defaults-chooser installed,
you can change ANY default*** script in /usr/local/bin/..
That is because defaults-chooser relies on my original CLI script, defaults-changer...

Just open a terminal and type:
defaults-changer
to see the help and info...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#37 Post by Makoto »

There are some Puppies that don't create a defaultchat entry, then?

(And, if so, if defaults-chooser created it, would the system act on it? :) )
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#38 Post by sc0ttman »

Makoto wrote:There are some Puppies that don't create a defaultchat entry, then?

(And, if so, if defaults-chooser created it, would the system act on it? :) )
Back when I made it, most people didn't care, and I made it for myself - I never use chat stuff really...
Logged in to puppy IRC about 5 times in my life...

And defaults-chooser won't create it if it doesn't exists,
but it could be changed to do that..

Although the system would only act on it where 'defaultchat' was
set as the 'run action' for the MIME type of the file being open..

Basically, you would need to go to right-click->set run action,
then type in 'defaultchat' and save the new run action..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#39 Post by Makoto »

Is it only defaultchat that may not be included in some Puppy versions, or are there others?

In theory, defaults-chooser could also change/add the MIME settings, right? I'd probably add a "do you really want to do this? (y/n)"-type prompt if I was going to add something like that (and for adding a default*** entry, if there wasn't one), though. Not that I still ever really worked with gtkdialog or any of the newer languages, though. :oops:
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

defaults-chooser-0.8-20120522

#40 Post by shinobar »

defaults-chooser-0.8-20120522, built in the lupu-528JP (coming soon)

# defaults-changer
# by sc0ttman
# free to all (obviously), edit as you like :D
# 18may2012 shinobar: rewrte, I18n
# 22may2012 shinobar: fix was failed to update audioplayer

Post Reply