Page 1 of 4

Defaults Chooser 0.8

Posted: Mon 31 May 2010, 22:52
by sc0ttman
Defaults-Chooser
Easily change the default programs used in your Puppy install..

Features:
- reads /usr/loca/bin/default*** files for the chosen apps at startup (thanks to Iguleder)
- checks through an array of programs and and builds a custom list of only the programs that are installed
- automatically add current defaults to top of the dropdown lists of programs
- changes the default*** files using a custom "defaults-changer" CLI tool from Puppy Arcade 8
- now supports parameters and CLI commands - just type the custom command in the desired field

Changelog

0.8
- more apps added inc xpaint, ooolight, cmus, ted, sns, sodipodi, umplayer, etc, etc
- support for either defaultaudioplayer or defaultmusicpayer built in
- cleaner, more consistent dropdown menus (paths removed from lists, if found)

0.7
- many more apps now supported
- added 'text editor' and 'text viewer' to GUI (whoops!)
- better checking for installed apps
- small fixes here and there for some existing entries
- can load through terminal with given path for chroot (for woofy)

0.5
- many apps added in all categories
- better searching and listing of installed apps in the GUI

0.2
- added support for parameters in the command
- replaced the get_program command, so all parameters and options are found, too
- added many more supported apps to the defaults lists
- fixed openoffice and seamonkey commands in the app arrays
- now uses gtk stock icons (thanks vovchik)

To Do:
- get a full list of the commands that I can include in each list (help me!)
- Please suggest apps that you would like included in the list of apps to search

NOTE: You may prefer this lovely default changer, from Iguleder.
Iguleders app will automatically search the .desktop files, in order to find which apps you have installed :)

Posted: Mon 31 May 2010, 23:29
by vovchik
Dear sc0ttman,

Thanks. Nicely done.

With kind regards,
vovchik

Posted: Tue 01 Jun 2010, 05:28
by sc0ttman
thanks vovchik, glad you like it..

NOTE: I've updated the file in the main post, due to an error with the menu entry!

Re: defaults chooser 0.1

Posted: Tue 01 Jun 2010, 10:03
by Iguleder
sc0ttman wrote: NOTE: I'm very sorry if anyone feels I have stepped on their toes here!!!
hehe :)

I like your wizard, but I truly think it has too many items. I don't believe people would like to choose so many things, that's both confusing and useless. Also, the script is longer and therefore slower, it's Bash after all.

By the way, you can take my functions from my wizard and put them in yours, should solve the parameters issue. :wink:

Posted: Tue 01 Jun 2010, 12:24
by vovchik
Dear sc0ttman,

I took the liberty of changing the button icons in defaults-chooser (l. 472) since (a) my old Puppy 3.01 did not have the pixmaps in question and (b) the gtk stock icons are present on all systems with GTK. I will now have a look at Iguleder's code. Perhaps there are further optimizations that can be made. In any case, a nice program. I don't think there are too many options, and I usually end up adjusting all the defaults by hand. I may add a few more options to my own pulldown lists, since I also have KDE and QT3/4 installed, so Kolourpaint, Konqueror might just as well be there.

With kind regards,
vovchik

Code: Select all

					<button>
						<input file stock="gtk-refresh"></input>
						<label> Update </label>
						<action>update_defaults</action>
					</button>
					<button>
						<input file stock="gtk-help"></input>
						<label> Help </label>
						<action>gtkdialog3 --program HELPGUI --center &</action>
					</button>
					<button>
						<input file stock="gtk-cancel"></input>
						<label> Exit </label>
						<action type="exit">EXIT_NOW</action>
					</button>

Posted: Wed 02 Jun 2010, 05:32
by sc0ttman
Thanks for the feedback.. I'll update this later tonight..

About being "confusing and useless" - I think only the "Bare HTML Viewer" is excessive...
And possibly "Search", as most people don't have a "defaultsearch " file (But I like to make one for my installs)

Also, I forgot I was using GrumpyWolfes ControlPanel icons in this script!! I will change that..

And vovchick, I'd be very happy if you could give me a list of the apps you'd like included in the app arrays..

I would like to include all the popular apps, even those not found in Puppy by default.
However, I don't use Puppy 5, KDE, Gnome, etc, etc, so I cannot know all the apps to add by myself!!

Posted: Wed 02 Jun 2010, 18:00
by vovchik
Dear sc0ttman,

I think the list of choices could be pretty extensive:

1. Browser - Opera, Firefox, Seamonkey, Chrome, Konqueror, Midori
2. Email -Thunderbird, Sylpheed, Claws-mail, Opera, Seamonkey
3. Media Player -gxine, gmplayer or mplayer, vlc, smplayer, kaffeine, gnome-player
4. Mixer -Alsamix, aumix, mixmos, retrovol, kalsamix
5. Paint - mtpaint, kolourpaint
6. Bare html viewer - skipstone, netsurf-bare, konqueror, miniweb, dillo, midori
7. Editor - geany, leafpad, tea, gvim
8. Word processor - abiword, swriter (open office), textmaker
9. Spreadsheet - gnumeric, scalc, planmaker
10. HTML editor - seamonkey, kompozer, swriter

I haven't really been exhaustive here, but puppy offers quite a few choices, which is ultimately great. Perhaps others on the forum can add to the list.

With kind regards,
vovchik

Posted: Thu 03 Jun 2010, 09:43
by chrome307
Thanks sc0ttman for this :)

For some reason I could not get it to recognise 'Aqualung' as my Music Player.

Apart from that it works great!

Posted: Thu 03 Jun 2010, 10:54
by sc0ttman
Updated to 0.2 - see main post

- aqualung now included, as are all the apps suggested above
- other changes

Posted: Thu 03 Jun 2010, 11:40
by sc0ttman
vovchik wrote:...puppy offers quite a few choices, which is ultimately great. Perhaps others on the forum can add to the list.
That would be nice, I agree..

Posted: Sat 05 Jun 2010, 09:58
by chrome307
Thanks sc0ttman for adding Aqualung as a music player :)

Posted: Sun 06 Jun 2010, 21:32
by abushcrafter
This is excellent! Thanks muchly :).

Posted: Tue 08 Jun 2010, 13:32
by 01micko
sc0ttman

Does this snippet of code help you at all?

Code: Select all

grep "browser" /usr/share/applications/*.desktop
Of course "browser" can be a variable.

Cheers

Posted: Tue 08 Jun 2010, 15:29
by sc0ttman
01micko wrote:sc0ttman

Does this snippet of code help you at all?

Code: Select all

grep "browser" /usr/share/applications/*.desktop
Of course "browser" can be a variable.

Cheers
I don't know.. Are you having problems with this tool?
I think it works as expected.. :oops:

I'm not at all familiar with grep (still learning bash as I go)..

What is the intended purpose of this code??
(I know I'm stupid here, it's only 1 line!)

OK, edit.. I ran the code..

It clearly gets all the info in the returned desktop file..
This is nice and simple, but do I need it? Are you having problems?

But yes it does help me learn, so that's good...

Posted: Tue 08 Jun 2010, 21:03
by 01micko
I like your app sc0ttman, and it works fine.

It was just a suggestion to save hard coding in all the apps. You can use it or not.

Cheers

Posted: Tue 08 Jun 2010, 21:16
by sc0ttman
01micko wrote:I like your app sc0ttman, and it works fine.

It was just a suggestion to save hard coding in all the apps. You can use it or not.

Cheers
aha! I'll experiment, hopefully I'll save some time, kilobytes and RSI in the future! :D

Posted: Thu 10 Jun 2010, 14:41
by sc0ttman
vovchik wrote:I think the list of choices could be pretty extensive:

1. Browser - Opera, Firefox, Seamonkey, Chrome, Konqueror, Midori
2. Email -Thunderbird, Sylpheed, Claws-mail, Opera, Seamonkey
3. Media Player -gxine, gmplayer or mplayer, vlc, smplayer, kaffeine, gnome-player
4. Mixer -Alsamix, aumix, mixmos, retrovol, kalsamix
5. Paint - mtpaint, kolourpaint
6. Bare html viewer - skipstone, netsurf-bare, konqueror, miniweb, dillo, midori
7. Editor - geany, leafpad, tea, gvim
8. Word processor - abiword, swriter (open office), textmaker
9. Spreadsheet - gnumeric, scalc, planmaker
10. HTML editor - seamonkey, kompozer, swriter
If anyone can add to this list on this thread, that will be lovely..
I'll add what I can think of or find, but some suggestions may be required :oops:

Posted: Sat 10 Jul 2010, 22:39
by Makoto
There aren't any options to change defaultchat? :)

Posted: Mon 12 Jul 2010, 19:22
by sc0ttman
Makoto wrote:There aren't any options to change defaultchat? :)
Oops!! No there isn't.. But I'll update it soon.. :oops:

Posted: Wed 14 Jul 2010, 17:12
by Eyes-Only
Thanks for this very neat little app sc0ttman! Puppy has truly needed something like this for a very long time! I know that whenever I play around with a Puppy I get tired at times of hauling over preconfigured "default***" files from my "default Puppy install" just to get it working the way I like. This vastly simplifies the process.

Thank you again very much!

Cheers!/Amicalement!

Eyes-Only
"L'Peau-Rouge d'Acadie"