Closing quotes are stripped from Exec command in user's autostart files
- gnome-session: 3.30.1
- OS: Arch Linux
It appears gnome-session version 3.30 strips closing quotes from Exec command in user's autostart files, consequently not running the Exec command.
I have an autostart file ~/.config/autostart/volume-50-percent.desktop that worked on gnome-session 3.28 and before but stopped working on 3.30. It just unmutes and set volume to 50%:
[Desktop Entry]
Name=Volume reset
Exec=sh -c 'pactl set-sink-mute 0 false; pactl set-sink-volume 0 50%'
Type=Application
This on longer works. The user journal shows message for gnome-session-binary that closing quote wasn't found (newlines added by me for readability):
WARNING: Failed to start app: Unable to start application:
Text ended before matching quote was found for '.
(The text was “sh -c 'pactl set-sink-mute 0 false; pactl set-sink-volume 0 50”)
Replacing quotes with double-quotes doesn't help. Adding whitespace in the desktop file after the closing quote doesn't help.
Even more curious, replacing the Exec command with sh -c 'pactl set-sink-mute 0 false; pactl set-sink-volume 0 50%' true
(adding the word "true" after the quote enclosed part) still gives this message the closing quote wasn't found (newlines added by me for readability):
WARNING: Failed to start app: Unable to start application:
Text ended before matching quote was found for '.
(The text was “sh -c 'sleep 5; pactl set-sink-mute 0 false; pactl set-sink-volume 0 50 true”)
So it even strips the quote mid command, not just at the end.