Bug 98643 - support for relative paths in desktop files
Summary: support for relative paths in desktop files
Status: CONFIRMED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 21:43 UTC by Dik Takken
Modified: 2018-04-21 17:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dik Takken 2005-02-05 21:43:46 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages
OS:                Linux

It is currently not possible to reference paths and filenames relative to the path where the desktop file itself is located.

This is very useful when developing scripts that generate datafiles and desktop files that will do something with those datafiles. When the user moves the directory that contains both the datafiles and the desktop files, the desktop files will stop working, because the absolute location of the datafiles have been hardcoded into them.

Maybe we could support setting the 'Working Directory' to the location of the desktop file by specifying '.' as the Working Directory.
Comment 1 Adriano Moura 2010-07-16 09:34:23 UTC
This bug is still present in KDE 4.5

It also does not honors variables for icons path.

Icons=$foo/bar.png does not work, but,
Exec=$foo/bar.bin does work!