Question

Q: The shortcuts work fine in my system, but do not work or do not display an image when installed in a different system.

The shortcuts work fine in my system, but do not work or do not display an image when installed in a different system.

Answer:

This is likely to be happening because you hardcode the path to the image or executable to the location of the files in your system, and do not include those files as part of your installation. Make sure you include the file the shortcut points to and the image or icon the shortcut is using as part of your installation. Make sure they are referenced as ${installdir}/path/to/image.png so the right path is specified once installed. On Unix, make sure also that if the target is an executable, it has the right permissions ( chmod +x filename ).