I would like to suggest to change the file SweetHome3D with "$1" added at the end: thus #!/bin/sh exec /opt/SweetHome3D/SweetHome3D "$1" This way, opening a file from XFE for instance would immediately load it as it can now be added as commandline argument.