For me the exec was marked with "sh path/to/file.sh" I changed it to Exec=bash path/to/file.sh and now it works ¯\_(ツ)_/¯