PDA

View Full Version : Adding applications to 'Applications'


Ansible
April 4th, 2008, 12:59 PM
I've written a couple of applications for ubuntu. One is a game using SDL. The other is a time tracker using GTK. I created application launchers for them in the 'Applications' menu, but from there I can only launch the game, not the GTK app. I can still launch the GTK app by going to it in Nautilus and double clicking. Any ideas?

nanotube
April 4th, 2008, 03:57 PM
I've written a couple of applications for ubuntu. One is a game using SDL. The other is a time tracker using GTK. I created application launchers for them in the 'Applications' menu, but from there I can only launch the game, not the GTK app. I can still launch the GTK app by going to it in Nautilus and double clicking. Any ideas?

obvious question: are you sure you didn't mistype the commandline in the launcher for the gtk app? :)

Ansible
April 5th, 2008, 11:54 AM
obvious question: are you sure you didn't mistype the commandline in the launcher for the gtk app? :)

Yeah; I used the 'Browse' button and then the 'Choose an application' dialog so I didn't actually type the name in. The same process worked for my other app...

Ansible
April 5th, 2008, 12:02 PM
Doh! Never mind. The GTK app was looking for its .glade file in the wrong directory - when you run it from the application launcher apparently it gives your '/home/username' directory as the default dir, not the application directory. I need to have this thing give an error if the .glade isn't found, or link it in...

nanotube
April 5th, 2008, 09:16 PM
Doh! Never mind. The GTK app was looking for its .glade file in the wrong directory - when you run it from the application launcher apparently it gives your '/home/username' directory as the default dir, not the application directory. I need to have this thing give an error if the .glade isn't found, or link it in...

or even better, detect where it's located (sys.path[0] contains that info), and load the glade from there. :) (an error if it's not found is not a bad idea either way, of course)