Default Applications Wizard - version 003
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Default Applications Wizard - version 003
Well ... I think Puppy really needs this thing.
It's not ready, but it works. It needs to be more user friendly and less ugly. Currently it is able to determine and set the default applications, but it needs to be designed better.
It's my first gtkdialog project, but I'm an experienced programmer. Using HTML syntax with a PyGTK-like thing is killing me
Any suggestions/comments are welcome.
Changelog:
- 31/5: version 001, an ugly version that does whatever it does and works
- 10/6: 002, detection of installed applications, UI fixes
- 10/6: 003, 6 times faster detection, minor fixes, way more efficient
See the replies for newer versions
It's not ready, but it works. It needs to be more user friendly and less ugly. Currently it is able to determine and set the default applications, but it needs to be designed better.
It's my first gtkdialog project, but I'm an experienced programmer. Using HTML syntax with a PyGTK-like thing is killing me
Any suggestions/comments are welcome.
Changelog:
- 31/5: version 001, an ugly version that does whatever it does and works
- 10/6: 002, detection of installed applications, UI fixes
- 10/6: 003, 6 times faster detection, minor fixes, way more efficient
See the replies for newer versions
- Attachments
-
- pdefaultapps.png
- (23.94 KiB) Downloaded 2530 times
-
- pdefaultapps-001.pet
- (1.24 KiB) Downloaded 862 times
Last edited by Iguleder on Thu 10 Jun 2010, 17:53, edited 3 times in total.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
Like this?
- Attachments
-
- apppic.jpg
- (34.98 KiB) Downloaded 2542 times
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)
-
The moment after you press "Post" is the moment you actually see the typso 8)
Damn!! I was gonna post something very similar in a couple of days.. Oh well..
[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]
This is really a programmers app.
A 'newbie' would have no idea what mozstart was.
You need to construct a translation/lookup table to determine what apps are available in the iso in easy to understand terms.
i.e. mozstart = SeaMonkey or whatever (Firefox maybe)
A 'newbie' would have no idea what mozstart was.
You need to construct a translation/lookup table to determine what apps are available in the iso in easy to understand terms.
i.e. mozstart = SeaMonkey or whatever (Firefox maybe)
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)
-
The moment after you press "Post" is the moment you actually see the typso 8)
I have a quick question.. Does the function 'set program' support adding parameters to the command to be used as the default?
For example, for a mail client, many people will want to use "seamonkey -mail", but I believe the set_program function will not support such inputs..
This code is very similar to something I am using, but mine does not support adding parameters...
For example, for a mail client, many people will want to use "seamonkey -mail", but I believe the set_program function will not support such inputs..
Code: Select all
if [ "`which $2`" != "" ]; then
echo "#!/bin/sh" > /usr/local/bin/$1
echo "exec $2 \"\$@\"" >> /usr/local/bin/$1
[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]
This has minor changes to achieve the above gui.
Text spacings formatting and centering of gui onscreen.
Note: -c -p mean centre and program respectively.
Text spacings formatting and centering of gui onscreen.
Note: -c -p mean centre and program respectively.
- Attachments
-
- pdefaultapps-001.pet
- (1.34 KiB) Downloaded 738 times
Rob
-
The moment after you press "Post" is the moment you actually see the typso 8)
-
The moment after you press "Post" is the moment you actually see the typso 8)
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Yes, it does.sc0ttman wrote:I have a quick question.. Does the function 'set program' support adding parameters to the command to be used as the default?
Basically, it writes a simple script.
Code: Select all
#!/bin/sh
exec <what you entered> "$@"
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Here's a new version. Now it finds all the applications you have installed and lists them. Something sc0tt's wizard doesn't do (btw, take it and apply it on yours, I like your wizard enough to let you)
TODO: make it auto-select the one you are using right now. Piece of cake, I'll do it within a couple of days.
TODO: make it auto-select the one you are using right now. Piece of cake, I'll do it within a couple of days.
- Attachments
-
- pdefaultapps-002.gz
- (1.14 KiB) Downloaded 683 times
-
- defwiz-002.png
- (44.47 KiB) Downloaded 2467 times
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Here it is.
Improvements:
- Prevents the user from entering invalid programs
- Starts about 6 times faster, does everything at once instead of repeating the procedure 6 times and running "cat" so many times for nothing
- Way more efficient
- Selects the current default application and puts it on the top of the list
EDIT: reuploaded, 2 typos ... as you can see, Geany is an image editor
Improvements:
- Prevents the user from entering invalid programs
- Starts about 6 times faster, does everything at once instead of repeating the procedure 6 times and running "cat" so many times for nothing
- Way more efficient
- Selects the current default application and puts it on the top of the list
EDIT: reuploaded, 2 typos ... as you can see, Geany is an image editor
- Attachments
-
- pdefaultapps-003.gz
- (1.47 KiB) Downloaded 807 times
-
- 003.png
- (40.64 KiB) Downloaded 2357 times
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
Nice work.. I like the way you automatically search the .desktop files..Iguleder wrote:Here it is.
Improvements:
- Prevents the user from entering invalid programs
- Starts about 6 times faster, does everything at once instead of repeating the procedure 6 times and running "cat" so many times for nothing
- Way more efficient
- Selects the current default application and puts it on the top of the list
EDIT: reuploaded, 2 typos ... as you can see, Geany is an image editor
But I just installed your tool and it didn't find my firefox or browser-installer .desktop files (not created by myself)
The reason is that they both seem to use the category "WebBrowser", not the normal "Internet" category..
[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]
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Yeah, I need to see how things are arranged in different PETs. I did all tests against vanilla 4.3.1 with only GIMP installed, so it's not perfect.
Gotta add all categories ... the underlying structure is ready and working, so it won't be a problem, just some extra conditions.
Gotta add all categories ... the underlying structure is ready and working, so it won't be a problem, just some extra conditions.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]