2

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?

6
  • Can you give the whole Exec line?
    – Pandya
    Jan 6, 2016 at 9:58
  • I found an issue with escaping. Actually, the program was called but due to wrong parameters it stopped again silently. While still searching for a log file I changed the Exec to Exec=command2 "a text parameter". command2 does not exist and I get no error message.
    – Knut
    Jan 8, 2016 at 13:33
  • So, What is final Exec line? and now is it working fine?
    – Pandya
    Jan 8, 2016 at 13:39
  • issue 1 solved: use sg in command. issue 2 not solved: where is the error log if Exec is malformed.
    – Knut
    Jan 8, 2016 at 13:54
  • I think you should revise your question by adding sufficient details.
    – Pandya
    Jan 8, 2016 at 13:56

1 Answer 1

1

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.

1
  • 1
    I checked .xession-errors before here are no changes. I use Linux Mint 17.3 with Cinnamon. I scanned my home with find and there was no file which recently changed.
    – Knut
    Jan 8, 2016 at 13:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .