Bug 98643

Summary: support for relative paths in desktop files
Product: [Frameworks and Libraries] kdelibs Reporter: Dik Takken <kde>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: adriano.lols
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

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!