Fixes "cinnamon-session-quit --logout --no-prompt --force" not working #183
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you open command line and try:
cinnamon-session-quit --logout --no-prompt --forceNothing happens. This suggested change corrects this behaviour.
Explanation of the error
The error happens because cinnamon-session-quit.py sends both flags (no-prompt + force) to cinnamon-session-binary, but the latter only handles one at a time. cinnamon-session-binary's debug output is "unknown logout mode option".
Explanation of the solution
In cinnamon-session-quit.py, if "--force" is issued, "--no-prompt" argument is ignored, as it is implied by the former. Thus, only the forceful flag is sent to cinnamon-session-binary