I have been trying to get desktop shortcuts to be created on Linux-64 system with only marginal success. The installer is set to required administrator privilege. I have also define the default user and group for file ownership (I am logging into the system as that user, anyway). When running the installer from this user's account, I am installing using SUDO to satisfy the 'administrators' privilege requirement.
I tried creating a plain "shortcut" (under the "desktopShortcutList"), but that never created the shortcut UNLESS I removed the requirement for the installer to be run with "administrator" privilege. I then found the question that another user had posted regarding using SUDO and creating a desktop short (using a "fileShortcut"), but that also did not work (with admin privilege required--I did not try without this requirement). Any help would be appreciated.
My original code looked like this (it contains a rule that is evaluating to true):
I modified it to include the "fileShortcut". Note: I changed the "shortcut" to be only be for the "windows" platform and the new fileShortcut to be for the "linux-x64 & linux" platforms". Here is the new code:
asked 17 Oct '12, 17:28
I got this to work with both sudo and kdesu as follows:
Then when you go to create the shortcuts, make sure the desktopDir exists:
I think it also works with the GNOME gksudo, which also sets SUDO_USER, if I recall correctly.
answered 24 Jul '13, 16:52
It is possible to determine directory for creation of icons by checking
However, this may not work for
answered 18 Oct '12, 08:12