#25740·atom

script error message using xrdp remote session

Author: aba-reckeCreated Dec 7, 2022Updated Dec 7, 2022

Prerequisites

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

  1. Use Ubuntu Mate with xrdp or 'unset DESKTOP_SESSION' in your terminal
  2. start atom from terminal
  3. 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