[Bug 164068] $HOME in working direcotry not expanded when running a program shortcut

ambro ambro at b4ever.net
Thu Jun 26 14:21:57 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=164068         




------- Additional Comments From ambro b4ever net  2008-06-26 14:21 -------
Created an attachment (id=25619)
 --> (http://bugs.kde.org/attachment.cgi?id=25619&action=view)
kdelibs patch, adds use of X-KDE-Path

I have created a patch that fixes the issue by introducing a new variable,
X-KDE-Path that uses the notation supporting roaming profiles.

I have changed KDesktopFile::readPath to be smarter:
it first checks if Path is non-standard and reads it appropriately. Then it
checks for X-KDE-Path, reads it using KConfigGroup::readPathEntry and compares
the fully expanded paths. If X-KDE-Path started with $HOME/ (or is $HOME) and
the only difference is the name of the home folders (roaming profile, user name
changed), it returns the expanded X-KDE-Path, otherwise Path.

The properties dialog now uses the the same readPath routine as the runner
does, and when writing the changes, it writes X-KDE-Path in the portable
notation, and Path in the same format as it was before (thereby not breaking
roaming profiles for KDE3).


More information about the Panel-devel mailing list