Skip to content

Commit 0c8b652

Browse files
authored
cs_startup: fix custom commands with spaces in path (#13229)
Automatically add quotes if selected filepath contains spaces. fixes linuxmint/cinnamon-settings-daemon#363
1 parent 24c733d commit 0c8b652

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

files/usr/share/cinnamon/cinnamon-settings/modules/cs_startup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,8 @@ def on_browse_button_clicked(self, button):
899899

900900
if response == Gtk.ResponseType.ACCEPT:
901901
name = chooser.get_filename()
902+
if " " in name:
903+
name = '"' + name + '"'
902904
self.command_entry.set_text(name)
903905

904906
chooser.destroy()

0 commit comments

Comments
 (0)