Bug 98643 - support for relative paths in desktop files
Summary: support for relative paths in desktop files
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdecore (other bugs)
Version First Reported In: 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: 2024-09-14 16:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


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!
Comment 2 Christoph Cullmann 2024-09-14 16:18:50 UTC
Hi,

kdelibs (version 4 and earlier) is no longer maintained since a few years.

KDE Frameworks 5 or 6 might already have implemented this wish.

If not, please re-open against the matching framework if feasible or against the application that shows the issue.

We then can still dispatch it to the right Bugzilla product or component.

Greetings
Christoph Cullmann