I want to run a program with a specific user group and added sg mygroup before the command in the Exec line of a .desktop file. While I could successfully run the command in a terminal, I could not start it by clicking the menu icon (nothing happens). Is there a way to see a error message somewhere?
- 201
1 Answers
The output (including error messages) of applications executed directly from a GUI menu is usually redirected to a file. I say “usually” because it depends on how it's configured by the distribution and by the session startup scripts. Under Debian and derivatives, under most if not all desktop environments, the file is .xsession-errors in your home directories.
To watch output being added to this file, open a terminal and run
tail -f ~/.xession-errors
If this file doesn't exist, look for files that were recently modified in your home directory:
ls -Altr ~
If you can't find the session log file, try finding it in your desktop environment's documentation. If you can't find it, ask a question on this site, telling us what distribution and what desktop environment (or session manager and window manager) you use.
- 829,060
-
1I checked
.xession-errorsbefore here are no changes. I use Linux Mint 17.3 with Cinnamon. I scanned my home withfindand there was no file which recently changed. – Knut Jan 08 '16 at 13:28
Execline? – Pandya Jan 06 '16 at 09:58Exec=command2 "a text parameter". command2 does not exist and I get no error message. – Knut Jan 08 '16 at 13:33Execline? and now is it working fine? – Pandya Jan 08 '16 at 13:39Exec=command2 "a text parameter"(exactly like this). This is obviously not executable. But clicking on the icon does nothing. I want to see a error message somewhere. – Knut Jan 08 '16 at 14:11