Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 03:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Defaults Chooser 0.8
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 5 [68 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Mon 31 May 2010, 18:52    Post subject:  Defaults Chooser 0.8
Subject description: supports many apps and custom commands
 

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 Smile
defaults-chooser-0.8.pet
Description 
pet

 Download 
Filename  defaults-chooser-0.8.pet 
Filesize  4.99 KB 
Downloaded  1419 Time(s) 
defaults-chooser-0.7.pet
Description  updated to 0.7, 24th may, 2011
pet

 Download 
Filename  defaults-chooser-0.7.pet 
Filesize  4.91 KB 
Downloaded  754 Time(s) 
defaults-chooser.pet
Description  0.5
pet

 Download 
Filename  defaults-chooser.pet 
Filesize  4.69 KB 
Downloaded  894 Time(s) 
defaults-chooser.png
 Description   
 Filesize   54.8 KB
 Viewed   7019 Time(s)

defaults-chooser.png

defaults-chooser.pet
Description  version 0.2
pet

 Download 
Filename  defaults-chooser.pet 
Filesize  4.49 KB 
Downloaded  1172 Time(s) 
defaults-chooser.pet
Description  version 0.1
pet

 Download 
Filename  defaults-chooser.pet 
Filesize  4.22 KB 
Downloaded  1035 Time(s) 

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search

Last edited by sc0ttman on Mon 30 May 2011, 15:13; edited 14 times in total
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Mon 31 May 2010, 19:29    Post subject:  

Dear sc0ttman,

Thanks. Nicely done.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Tue 01 Jun 2010, 01:28    Post subject:  

thanks vovchik, glad you like it..

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

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1927
Location: Israel, somewhere in the beautiful desert

PostPosted: Tue 01 Jun 2010, 06:03    Post subject: Re: defaults chooser 0.1  

sc0ttman wrote:

NOTE: I'm very sorry if anyone feels I have stepped on their toes here!!!


hehe Smile

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

_________________
My homepage
My GitHub profile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Tue 01 Jun 2010, 08:24    Post subject:  

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:
               <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>
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Wed 02 Jun 2010, 01:32    Post subject:  

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!!

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Wed 02 Jun 2010, 14:00    Post subject:  

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
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Thu 03 Jun 2010, 05:43    Post subject:  

Thanks sc0ttman for this Smile

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

Apart from that it works great!
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Thu 03 Jun 2010, 06:54    Post subject:  

Updated to 0.2 - see main post

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

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Thu 03 Jun 2010, 07:40    Post subject:  

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..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sat 05 Jun 2010, 05:58    Post subject:  

Thanks sc0ttman for adding Aqualung as a music player Smile
Back to top
View user's profile Send private message 
abushcrafter


Joined: 30 Oct 2009
Posts: 1447
Location: England

PostPosted: Sun 06 Jun 2010, 17:32    Post subject:  

This is excellent! Thanks muchly Smile.
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Tue 08 Jun 2010, 09:32    Post subject:  

sc0ttman

Does this snippet of code help you at all?

Code:
grep "browser" /usr/share/applications/*.desktop


Of course "browser" can be a variable.

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Tue 08 Jun 2010, 11:29    Post subject:  

01micko wrote:
sc0ttman

Does this snippet of code help you at all?

Code:
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.. Embarassed

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...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Tue 08 Jun 2010, 17:03    Post subject:  

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

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 5 [68 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0941s ][ Queries: 13 (0.0095s) ][ GZIP on ]