Bug 164825 - Path in .desktop not evaluated
Summary: Path in .desktop not evaluated
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Oswald Buddenhagen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 15:41 UTC by Hardy Hünteler
Modified: 2008-07-04 10:05 UTC (History)
0 users

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 Hardy Hünteler 2008-06-24 15:41:43 UTC
Version:            (using KDE 4.0.5)
Installed from:    Fedora RPMs

I have an .desktop-File with a Path-Entry (Arbeitsverzeichnis in german).
If i start the program in Konsole with:
 cd [Path-Entry]
 startProgram
all is OK

if i have the same entries in the .desktop-File the start is broken. The same configuration under KDE 3.5.9 works!

My .desktop-File for this windows-program: http://www.suuntosports.com/mysuunto/downloads/SDM16.exe
[Desktop Entry]
Comment[de]=DiveManager
Comment=DiveManager
Encoding=UTF-8
Exec='/usr/bin/wine' sdm.exe
GenericName[de]=
GenericName=
Icon=
MimeType=
Name[de]=DiveMan
Name=DiveMan
Path[$e]=$HOME/.wine/drive_c/Program\\ Files/SDM
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-StartupType=
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Comment 1 Oswald Buddenhagen 2008-06-24 20:01:51 UTC
not sure why it worked with kde 3, but the backslashes are just wrong.
Comment 2 Hardy Hünteler 2008-06-26 20:10:54 UTC
i've tried
Path[$e]=$HOME/.wine/drive_c/Program\\ Files/SDM

Path[$e]=$HOME/.wine/drive_c/Program Files/SDM
whitout the backslashes

Path[$e]=$HOME/.wine/drive_c/Program\ Files/SDM
like a cd generates in Konsole

Path[$e]=$HOME/.wine/drive_c/'Program Files'/SDM
Path[$e]=$HOME/.wine/drive_c/"Program Files"/SDM
Path[$e]=$HOME/.wine/drive_c/"Program\ Files"/SDM
Path[$e]=$HOME/.wine/drive_c/"Program\\ Files"/SDM

and least i tried a softlink "ProgramFiles" to the directory "Program Files"
Path[$e]=$HOME/.wine/drive_c/ProgramFiles/SDM

Because no one works, i came to the conclusion, that the Path-Entry is ignored ...
Comment 3 Oswald Buddenhagen 2008-07-04 09:30:19 UTC
ok, expansion doesn't work in desktop files, indeed.
if you try to read a desktop file with kreadconfig, it returns the right value, though. strange ...
Comment 4 Oswald Buddenhagen 2008-07-04 10:05:58 UTC
fixed for kde 4.1 and 4.0.6.