script error message using xrdp remote session
Prerequisites
- [x ] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Sometimes 'DESKTOP_SESSION' is not defined, e.g. using xrdp with Ubuntu mate: printenv | grep DESK MATE_DESKTOP_SESSION_ID=this-is-deprecated XDG_SESSION_DESKTOP=mate XDG_CURRENT_DESKTOP=MATE The result is the message starting atom: "expr: syntax error: missing argument after ‘8’ "
Steps to Reproduce
- Use Ubuntu Mate with xrdp or 'unset DESKTOP_SESSION' in your terminal
- start atom from terminal
- observe output "expr: syntax error: missing argument after ‘8’ "
Expected behavior:
No error message from startup script
Actual behavior:
Error message as described
Reproduces how often:
always
Versions
Atom : 1.60.0 Electron: 9.4.4 Chrome : 83.0.4103.122 Node : 12.14.1
apm 2.6.2 npm 6.14.13 node 12.14.1 x64 atom 1.60.0 python git 2.34.1
PRETTY_NAME="Ubuntu 22.04.1 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.1 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
xrdp 0.9.17
Additional Information
Source: atom/atom