Comment 4 for bug 252571

Revision history for this message
Juan Ignacio Saitua (jisaitua) wrote :

No, it has no Path entry. I can also put directly "Exec=/opt/bin/myapp", but I don't want to edit *.desktop files lying in /usr/share/applications.
Maybe I need to explain my real scenario: we are using a thinclient environment where we need to tweak many applications so they "just work" for the end users (e.g. sound, cd burning, 3d graphics). Our first approach was to edit the *.desktop files to run those specific applications with the corresponding tweak (e.g. use padsp to launch java to have remote sound). That approach doesn't scale well, because after every system update, some *.desktop files where replaced with newer ones, and our "tweaks" get loosed. Our next approach was to use "wrappers" for those specific applications. Those "wrappers" lay in /opt/bin. So when some one starts "java.desktop" it really should start "/opt/bin/java" (and that runs "padsp /usr/bin/java").
BTW: Our current workaround was to edit directly the libkdecore.so.4.2.0 library and replace the hard coded /usr/bin path with /opt/bin (see previous post for details about the PATH issue). A really nasty hack, but it work for us.