Bug#269519: kshisen: desktop file Exec option should not contain full path to command
On Thu, Sep 09, 2004 at 11:13:59PM -0700, Steve Langasek wrote: > clone 269519 -1 > severity 269519 important > reassign -1 kicker > retitle -1 kicker broken when .desktop file includes an absolute path > thanks > > This really seems to be a bug in kicker, not in kshisen. It's obviously > rather difficult to launch an application without a full path if it lies > outside the search path, and clearly it's possible for a user to have a > path that doesn't include /usr/games. OK, I've started debuggig this, but I'm completely lost in KDE's internals, so I'll mainly present what I've found to hopefully make it easier for the next person touching this (I'm going to bed now, but I might pick it up again later): - This bug is present both in sarge (KDE 3.2) and sid (KDE 3.3). - The error message "KDEInit could not launch '/usr/games/kmahjongg'" (when you close the application and kicker unhangs) seems to come from kdelibs, not kdebase (kicker). It is delivered via a UNIX socket from kdeinit (?) to kicker (as a response to the "launch" request, I'd guess), which only displays it. - The only code that checks for '/' anywhere in kdeinit seems to be in klauncher.cpp; since kdelibs spent from 2am to over 3am compiling (still compiling as I write this :-) ), I haven't been able to check if it actually makes a difference or not, but the path with '/' does explicit "new" while the path without seems to enter some factory. (This might be a red herring, though.) - The bug is not completely deterministic; at one point, it simply disappeared, but rm -rf ~/.kde brought it back. /* Steinar */ -- Homepage: http://www.sesse.net/
Bug#269519: kshisen: desktop file Exec option should not contain full path to command
Steve Langasek <[EMAIL PROTECTED]> writes: > This really seems to be a bug in kicker, not in kshisen. It's obviously > rather difficult to launch an application without a full path if it lies > outside the search path, and clearly it's possible for a user to have a > path that doesn't include /usr/games. And in fact, IIRC kdm doesn't include /usr/games in the user's PATH. -- Daniel Schepler "Please don't disillusion me. I [EMAIL PROTECTED]haven't had breakfast yet." -- Orson Scott Card
Bug#269519: kshisen: desktop file Exec option should not contain full path to command
clone 269519 -1 severity 269519 important reassign -1 kicker retitle -1 kicker broken when .desktop file includes an absolute path thanks This really seems to be a bug in kicker, not in kshisen. It's obviously rather difficult to launch an application without a full path if it lies outside the search path, and clearly it's possible for a user to have a path that doesn't include /usr/games. -- Steve Langasek postmodern programmer signature.asc Description: Digital signature
Bug#269519: kshisen: desktop file Exec option should not contain full path to command
Package: kshisen Version: 4:3.3.0-1 Severity: grave Tags: patch Justification: renders package unusable this problem also applies to many other packages. It seems that specifying Exec=/usr/share/kshisen ... breaks kicker. When you put the application in an application button in kicker and click on it, kicker stalls until the application is closed again after which it reports it could not start the application. The solution to this is to specify Exec=kshisen ... (So no path to the command). Then Kicker works as expected. Only the following desktop files (are corresponding games are affected) kde/KGoldrunner.desktop kde/atlantik.desktop kde/kasteroids.desktop kde/katomic.desktop kde/kbackgammon.desktop kde/kbattleship.desktop kde/kblackbox.desktop kde/kbounce.desktop kde/kenolaba.desktop kde/kfouleggs.desktop kde/kjumpingcube.desktop kde/klickety.desktop kde/klines.desktop kde/kmahjongg.desktop kde/kolf.desktop kde/konquest.desktop kde/kpat.desktop kde/kpoker.desktop kde/kreversi.desktop kde/ksame.desktop kde/ksirtet.desktop kde/ksmiletris.desktop kde/ksnake.desktop kde/ksokoban.desktop kde/kspaceduel.desktop kde/ktron.desktop kde/ktuberling.desktop kde/kwin4.desktop kde/lskat.desktop all files under /usr/share/applications/ -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.7-rc3 Locale: LANG=C, LC_CTYPE=C Versions of packages kshisen depends on: ii kdelibs44:3.3.0-1.1 KDE core libraries ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an ii libgcc1 1:3.4.1-7GCC support library ii libkdegames14:3.3.0-1KDE games library and common files ii libqt3c102-mt 3:3.3.3-4Qt GUI Library (Threaded runtime v ii libstdc++5 1:3.3.4-9The GNU Standard C++ Library v3 -- no debconf information