GNOME Bugzilla – Bug 343231
Incorrect quoting of spaces in the command line for manually specified startup programs
Last modified: 2006-10-03 01:47:18 UTC
Under the "Startup Programs" tab in gnome-session-properties, it's not possible to specify commands with spaces inside the arguments. To reproduce: 1. Open gnome-session-properties and add a command like this: gnome-terminal -t "Local terminal" 2. Notice how the command that appear in the list lacks the double quotes. However, if it's edited again one sees that it in reality is: gnome-terminal -t Local\ terminal I.e. the space in the second argument is still escaped. 3. Close gnome-session-properties. 4. Open ~/.config/autostart/gnome-terminal.desktop. It contains this line: Exec=gnome-terminal -t Local terminal I.e. the space is no longer escaped. 5. Exit the session and log in again. Sure enough, the Gnome terminal doesn't appear. Instead there is an error Invalid argument: "terminal" in ~/.xsession-errors.
2006-07-27 Vincent Untz <vuntz@gnome.org> * startup-programs.c: don't keep around argc and argv, but just the command line since we don't need argv (client_free): updated for this (search_desktop_entries_in_dir): ditto (startup_list_write): ditto (startup_list_duplicate): ditto (startup_list_update_gui): ditto (edit_client): ditto, and check if the entered command is correct with g_shell_parse_argv() (startup_list_add_dialog): updated, and fix small leak Side-effect: fix bug #343231
*** Bug 345030 has been marked as a duplicate of this bug. ***