Today I made a momentous decision; at least in terms of my personal history with Linux and switched to the Gnome desktop completely. While the migration story including my reasons for dropping KDE is another topic (and will most likely be covered in a future entry) I wanted to explain a very annoying problem which most former KDE users are likely to face when using Gnome. And that is
how to set the working path for any executable for which you create a desktop launcher. This is a useful, and occasionally important setting which are required by some programs.
The Gnome launcher creation tool provides no way to specify a working directory as you can see. I searched the web for numerous solutions, all of which were quite unsatisfactory and didn't work. All I needed was a simple solution to the problem. While I hope the Gnome developers will fix this somewhat annoying issue in the future, I have devised a reasonable workaround for the problem. After a bit of thought I merely used a
gnome-terminal to wrap around the executable program/script. Seems a very obvious ploy on hindsight, but it took me a while to hit upon the solution.
Here's the necessary
command for the launcher window:
gnome-terminal --working-directory /path/to/working/dir/ -e /path/to/executable
Just replace the
/path/to/working/dir/ and
/peth/to/executable with your own and you're set. Hope you find it useful.
12 comment(s)
Leave a comment »Comment by MrCorey (visitor) on 23 Jul 2009 @ 09:56 IST #
Comment by Hari (blog owner) on 23 Jul 2009 @ 10:56 IST #
Comment by MrCorey (visitor) on 23 Jul 2009 @ 18:18 IST #
Comment by Hari (blog owner) on 23 Jul 2009 @ 19:11 IST #
Comment by Teknomancer (visitor) on 9 Aug 2009 @ 17:03 IST #
gnome-terminal --working-directory /path/to/working/dir/ -e /path/to/executablecommd
Comment by yash (visitor) on 12 Sep 2009 @ 17:34 IST #
Comment by William (visitor) on 1 Oct 2010 @ 08:47 IST #
Comment by Hari (blog owner) on 1 Oct 2010 @ 12:39 IST #
Comment by mech (visitor) on 11 Nov 2010 @ 18:45 IST #
Comment by Hari (blog owner) on 11 Nov 2010 @ 20:37 IST #
Comment by John Bartholomew (visitor) on 19 Sep 2011 @ 20:05 IST #
Comment by Hari (blog owner) on 19 Sep 2011 @ 22:06 IST #