#1031036 sagemath: sage starts from command line but not from desktop menu

#1031036#5
Date:
2023-02-10 16:43:09 UTC
From:
To:
Dear Maintainer,

Sage fails to start from the graphical menu with "Failed to execute default
Terminal Emulator" "Input/output error".

The problem is confined to the menu launcher: sage starts without problem from
the command line (e.g. typing "sage -n" from the terminal emulator).
-----------------

The problem appears specific to sage, not to my configuration. This is the
information that leads me to believe this:

***
I have verified that all other applicatons that launch with "Terminal=true"
work as intended. In particular all applications listed here, except for sage,
open from their respective menu items

/usr/share/applications$ grep "Terminal=true" *
  emacs-term.desktop:Terminal=true
  jupyter-notebook.desktop:Terminal=true
  mc.desktop:Terminal=true
  mcedit.desktop:Terminal=true
  python3.11.desktop:Terminal=true
  R.desktop:Terminal=true
  sagemath.desktop:Terminal=true
  vim.desktop:Terminal=true

***
I use "terminator" as my default terminal emulator.

# update-alternatives --config x-terminal-emulator
There are 5 choices for the alternative x-terminal-emulator (providing
/usr/bin/x-terminal-emulator).

  Selection    Path                 Priority   Status
------------------------------------------------------------
* 0            /usr/bin/terminator   50        auto mode
  1            /usr/bin/koi8rxterm   20        manual mode
  2            /usr/bin/lxterm       30        manual mode
  3            /usr/bin/terminator   50        manual mode
  4            /usr/bin/uxterm       20        manual mode
  5            /usr/bin/xterm        20        manual mode

$ x-terminal-emulator
works as intended (opens a new window running terminator)

***
I run xfce-4 as my window manager.

My xfce4 configuration (Menu Applications -> Settings -> Default Applications
-> Utilities -> Terminal Emulator) is set to
"Debian X Terminal Emulator"

This works as intended:
$ exo-open --launch TerminalEmulator
works as intended (opens a new window running terminator)

#1031036#10
Date:
2023-02-12 10:45:57 UTC
From:
To:
Dear Jorge,

thanks for the bug report. I googled the error that you got and it seems a lot of xfce users had similar problems over the years (unrelated to sagemath).

Maybe xfce trips over the space in the command? What happens if you change the line

Exec=sage --notebook=jupyter

to

Exec=sage

in /usr/share/applications/sagemath.desktop ?

Best,
Tobias