summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLassebq <lassebq.mine@gmail.com>2023-10-15 13:02:44 +0300
committerGeronymos <gero@gmx.de>2023-10-16 17:14:36 +0200
commit341492d15df0221392c25f76b7833b539f91c1ea (patch)
tree4ee11fe8da8cd219924a773a2ee4b4975c9c155d
parentb9be0581e48c9adcc0b4f19be31e1df511555fd5 (diff)
Missed a variable
-rw-r--r--dicons.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dicons.c b/dicons.c
index 93f9f05..f39e2f5 100644
--- a/dicons.c
+++ b/dicons.c
@@ -171,6 +171,8 @@ static GtkListStore *create_desktop_list(void)
static void launch_default_or_app_for_file(GFile *desktop_file) {
GAppInfo *app;
GKeyFile *keyfile = g_key_file_new ();
+ char* file_uri;
+
if (g_key_file_load_from_file (keyfile, g_file_get_path(desktop_file), G_KEY_FILE_NONE, NULL))
{
app = (GAppInfo*)g_desktop_app_info_new_from_keyfile (keyfile);
@@ -182,7 +184,7 @@ static void launch_default_or_app_for_file(GFile *desktop_file) {
}
}
// Not a .desktop, falling back to xdg open
- char* file_uri = g_file_get_uri(desktop_file);
+ file_uri = g_file_get_uri(desktop_file);
g_app_info_launch_default_for_uri(file_uri, 0, 0);
}