Quote config folder when spawning private browsing
On Windows the folder typically contains spaces.
This commit is contained in:
parent
0b829401ae
commit
b8512f2532
1 changed files with 5 additions and 1 deletions
|
@ -601,8 +601,12 @@ sokoke_spawn_app (const gchar* uri,
|
||||||
gchar* quoted = g_shell_quote (executable);
|
gchar* quoted = g_shell_quote (executable);
|
||||||
gchar* command;
|
gchar* command;
|
||||||
if (private)
|
if (private)
|
||||||
command = g_strconcat (quoted, " -c ", sokoke_set_config_dir (NULL),
|
{
|
||||||
|
gchar* quoted_config = g_shell_quote (sokoke_set_config_dir (NULL));
|
||||||
|
command = g_strconcat (quoted, " -c ", quoted_config,
|
||||||
" -p", NULL);
|
" -p", NULL);
|
||||||
|
g_free (quoted_config);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
command = g_strconcat (quoted, " -a", NULL);
|
command = g_strconcat (quoted, " -a", NULL);
|
||||||
g_free (quoted);
|
g_free (quoted);
|
||||||
|
|
Loading…
Reference in a new issue