Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Conversation

@aba-recke
Copy link

Identify the Bug

#25740

Description of the Change

by quoting the result of $(...) it is taken as empty string so that substring command gets the right amount of parameter

Alternate Designs

non

Possible Drawbacks

non

Verification Process

Using shellcheck confirms the change. Starting atom after the change works flawless with and without 'DESKTOP_SESSION' defined.

Release Notes

Fix error message in case DESKTOP_SESSION is not defined

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’ "
Simply putting quotes fixes it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant