programchooser-0.3 widget

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

programchooser-0.3 widget

#1 Post by Nathan F »

This is a little widget I came up with using gtkdialog for use in other scripts. It allows you to select a program from a list. based on it's menu category, or by using a file selector. This is used in Grafpup's "defaultprograms" and in the latest version of the wallpaper setter which is also in Puppy.

By itself this program has little value but in conjunction with other scripts allows for a nice way to choose a default program for a certain task. It is run with the following syntax:

Code: Select all

programchooser [default text] [icon] [category] [category to exclude]
The "default text" will appear in the entry box when the program is launched, the icon will be the icon appearing in the corner of the window and in the taskbar, the category is the category to search for, and the second category will be excluded from the search. Whatever is in the entry box when the program is closed will be returned to stdout. This builds the program list by searching through the .desktop files in /usr/share/applications.

Questions just ask.

Nathan
Attachments
programchooser-0.3.pet
(2.09 KiB) Downloaded 830 times
programchooser.png
(25.74 KiB) Downloaded 1066 times
programchooser_nls-0.3.pet
(1.9 KiB) Downloaded 725 times
Last edited by Nathan F on Fri 13 Jun 2008, 18:18, edited 1 time in total.
Bring on the locusts ...

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#2 Post by Nathan F »

Updated to version 0.2 -
  • Capable of nls translations (only English so far)
    Now uses LANG environment variable when looking up program descriptions
Nathan
Bring on the locusts ...

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#3 Post by Nathan F »

Updated to version 0.3. Fixed nls support, added translations for dutch, french, german, italian, russian, and spanish. Translations not gauranteed accurate, most were done by myself using Google translate. Volunteer translators welcome. Also you can now filter the program list using more than one category to search for, by separating them with a '|' character. Example -

Code: Select all

programchooser [default text] [icon] [category1|category2|category3] [category to exclude]
Nathan[/code]
Bring on the locusts ...

Post Reply