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

Defaults Chooser 0.8

#1 Post 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 :)
Attachments
defaults-chooser-0.8.pet
(4.99 KiB) Downloaded 2425 times
defaults-chooser-0.7.pet
updated to 0.7, 24th may, 2011
(4.91 KiB) Downloaded 1628 times
defaults-chooser.pet
0.5
(4.69 KiB) Downloaded 1776 times
defaults-chooser.pet
version 0.2
(4.49 KiB) Downloaded 2039 times
defaults-chooser.pet
version 0.1
(4.22 KiB) Downloaded 1889 times
defaults-chooser.png
(54.8 KiB) Downloaded 8232 times
Last edited by sc0ttman on Mon 30 May 2011, 19:13, edited 14 times in total.
[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
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#2 Post by vovchik »

Dear sc0ttman,

Thanks. Nicely done.

With kind regards,
vovchik

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

#3 Post 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!
[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
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

Re: defaults chooser 0.1

#4 Post 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:
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#5 Post 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>

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

#6 Post 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!!
[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
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#7 Post 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

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#8 Post 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!

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

#9 Post by sc0ttman »

Updated to 0.2 - see main post

- aqualung now included, as are all the apps suggested above
- other changes
[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

#10 Post 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..
[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
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#11 Post by chrome307 »

Thanks sc0ttman for adding Aqualung as a music player :)

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#12 Post by abushcrafter »

This is excellent! Thanks muchly :).

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#13 Post 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
Puppy Linux Blog - contact me for access

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

#14 Post 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...
[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
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#15 Post 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
Puppy Linux Blog - contact me for access

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

#16 Post 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
[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

#17 Post 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:
[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.

#18 Post by Makoto »

There aren't any options to change defaultchat? :)
[ 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

#19 Post by sc0ttman »

Makoto wrote:There aren't any options to change defaultchat? :)
Oops!! No there isn't.. But I'll update it soon.. :oops:
[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
Eyes-Only
Posts: 1043
Joined: Thu 10 Aug 2006, 06:32
Location: La Confederation Abenaquaise

#20 Post 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"
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. 8)
*~*~*~*~*~*

Post Reply