Page 2 of 4

Posted: Thu 15 Jul 2010, 19:45
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

Posted: Sun 23 Jan 2011, 22:32
by sc0ttman
updated to 0.5

Posted: Tue 24 May 2011, 16:51
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!

Posted: Mon 30 May 2011, 19:12
by sc0ttman
updated to 0.8 see main post

much thanks

Posted: Mon 11 Jul 2011, 02:20
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

defaults-chooser .. translations wanted please

Posted: Sun 14 Aug 2011, 14:31
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\""

Posted: Tue 16 Aug 2011, 03:47
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 :)

Posted: Wed 17 Aug 2011, 16:21
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..

Posted: Wed 16 Nov 2011, 22:26
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.

Posted: Tue 22 Nov 2011, 00:12
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 :(

Posted: Mon 23 Jan 2012, 04:11
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

Posted: Mon 23 Jan 2012, 06:37
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

Posted: Tue 24 Jan 2012, 18:42
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??

Posted: Wed 25 Jan 2012, 02:04
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

Posted: Wed 25 Jan 2012, 05:03
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.

Posted: Mon 30 Jan 2012, 18:01
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...

Posted: Mon 30 Jan 2012, 19:03
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? :) )

Posted: Wed 01 Feb 2012, 15:52
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..

Posted: Sat 04 Feb 2012, 07:11
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:

defaults-chooser-0.8-20120522

Posted: Fri 06 Jul 2012, 09:48
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