Version: (using KDE KDE 3.5.6) Installed from: Debian testing/unstable Packages OS: Linux Adding a 'TryExec=/path/to/binary' line in the desktop file for an icon on the desktop has no effect, the icon still shows even when '/path/to/binary' is absent
this works as expected in the menu BTW, so it's only the desktop icons that ignore it. Reason we'd use this is that debian-edu ships with links to edu-software on the desktop for students, but not all schools have all edu-software installed
here is a diff fixing this : diff -Nur kdebase-3.5.7/kdesktop/kdiconview.cc kdebase-3.5.7.new/kdesktop/kdiconview.cc --- kdebase-3.5.7/kdesktop/kdiconview.cc 2007-10-11 17:19:49.000000000 +0200 +++ kdebase-3.5.7.new/kdesktop/kdiconview.cc 2007-10-11 17:20:09.000000000 +0200 @@ -919,6 +919,11 @@ if (cfg.readListEntry("NotShowIn", ';').contains("KDE")) return false; } + if (cfg.hasKey("TryExec")) + { + if (KStandardDirs::findExe( cfg.readEntry( "TryExec" ) ).isEmpty()) + return false; + } QString name = cfg.readEntry("Name"); if ( !name.isEmpty() )
SVN commit 724191 by dfaure: Apply patch from Anthony Mercatante which makes kdesktop support TryExec for .desktop files on the desktop. Thanks! BUG: 144251 M +6 -1 kdiconview.cc WebSVN link: http://websvn.kde.org/?view=rev&revision=724191
Bug closed. Kdesktop is no more mantained.