Skip to content
Snippets Groups Projects
Commit 7602c9e3 authored by Andre Miranda's avatar Andre Miranda
Browse files

Correctly handle loaded action and app from rc

These options were until then ignored when using
the window, region or fullscreen options from CLI.
parent 5967d3e6
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,8 @@ gboolean mouse = FALSE;
gboolean upload = FALSE;
gboolean clipboard = FALSE;
gboolean upload_imgur = FALSE;
gchar *screenshot_dir;
gchar *application;
gchar *screenshot_dir = NULL;
gchar *application = NULL;
gint delay = 0;
......@@ -337,11 +337,12 @@ int main (int argc, char **argv)
sd->action = UPLOAD_IMGUR;
sd->action_specified = TRUE;
}
else
{
sd->app = g_strdup ("none");
sd->action = SAVE;
}
if (!sd->app)
sd->app = g_strdup ("none");
if (!sd->action)
sd->action = SAVE;
/* If the user gave a directory name, check that it is valid */
if (screenshot_dir != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment