Buchan Milne wrote:

Hi!
In Mandrake 9.2 beta2 application shortcuts in ~/.kde/Autostart stopped
working - they aren't launched when I log in to KDE.



Linpopup started fine this morning from ~/.kde/Autostart


$ rpm -q kdebase
kdebase-3.1.3-13mdk


I've tracked down the problem. It wasn't easy, though...

One Autostart entry actually worked, others didn't. The "link to application" entry that worked looked like this:

[Desktop Entry]
Comment=
Comment[pl]=
Encoding=UTF-8
Exec=ssh-add < /dev/null
GenericName=
GenericName[pl]=
Icon=
MimeType=
Name=sshaddkey
Name[pl]=sshaddkey
Path=
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

One of those that didn't work looked like this:

[Desktop Entry]
Comment[pl]=
Encoding=UTF-8
Exec=xgamma -gamma 1.5
Icon=
MimeType=
Name[pl]=xgamma
Path=
ServiceTypes=
SwallowExec=
SwallowTitle=
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=


So the difference between the two that cause the second one to not work was that it didn't have a general "Name" attribute, only "Name[pl]" and was ignored since I'm using english locale for language and polish locales for other LC's:


$locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=pl_PL.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=pl_PL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=pl_PL.UTF-8
LC_NAME=pl_PL.UTF-8
LC_ADDRESS=pl_PL.UTF-8
LC_TELEPHONE=pl_PL.UTF-8
LC_MEASUREMENT=pl_PL.UTF-8
LC_IDENTIFICATION=pl_PL.UTF-8
LC_ALL=

When I've manually added "Name=xgamma" line to the second file, it started working!

So to summarize, it's sort of a bug in KDE - it ignores Autostart links to applications that don't have a name for currently used language. This is bad since one can create a desktop entry, then switch to a differenet language.

With the current version of KDE and my language settings, when I create a link to application, it gets both a "Name" and "Name[pl]" attribute, but I'm not sure that other combinations of language settings couldn't create one that only has "Name[pl]" and no "Name"...

Best Regards,
--
Aleksander Adamowski
Jabber JID (to nie e-mail!): [EMAIL PROTECTED]
GG#: 274614
ICQ UIN: 19780575 http://olo.office.altkom.com.pl






Reply via email to