Relative paths on .desktop (dot desktop) files

Asked by hacktolive on 2009-04-15

Is it possible to use relative paths on .desktop files?
I am working on Firefox Portable ( http://hacktolive.org/wiki/Portable_Applications_(Linux) ), but I don't see a way to use a .desktop files to launch it.

I tried using:
Exec=./Firefox.sh

And:
Exec=./Firefox.sh
Path=./

But nothing...
Is it possible to use relative paths?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2009-04-15
Last reply:
2009-05-01
Raffaello (raff-dede) said : #1

Please look at the following link and make sure you have all the utilities necessary for .desktop files:

http://packages.ubuntu.com/hardy/desktop-file-utils

Let me know

Kind regards

hacktolive (hacktolive-org) said : #2

Yes, I have that package and all the utilities included... At least I would like to know if this is supposed to be possible... Thanks

Raffaello (raff-dede) said : #3

To be honest I'm not sure whether it can work with a relative path, I found these specs and you might want to check them:

http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html#example

I'm sorry for not been able to help you further.

Regards

hacktolive (hacktolive-org) said : #4

Yes, I have read the official specifications with attention, but have found no info regarding that... Probably that does not work... Thanks anyway. Cheers

Launchpad Janitor (janitor) said : #5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

http://standards.freedesktop.org/desktop-entry-spec/

Exec=bash -c '_PWD="$PWD"; cd "`echo $0 | sed s/filename.desktop$//`"; ./program.sh run; cd "_PWD"' %k