aboutsummaryrefslogtreecommitdiff
path: root/src/session-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-service.c')
-rw-r--r--src/session-service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/session-service.c b/src/session-service.c
index 72f2139..28284ff 100644
--- a/src/session-service.c
+++ b/src/session-service.c
@@ -542,8 +542,6 @@ rebuild_items (DbusmenuMenuitem *root,
gboolean can_activate;
gboolean can_lockscreen;
GList *children;
- GDir *extra_launchers_dir;
- const gchar *extra_launcher_file;
/* Make sure we have a valid GConf client, and build one
if needed */
@@ -729,11 +727,14 @@ rebuild_items (DbusmenuMenuitem *root,
update_menu_entries(restart_shutdown_logout_mi);
/* now add extra launchers */
+ GDir *extra_launchers_dir;
extra_launchers_dir = g_dir_open (EXTRA_LAUNCHER_DIR, 0, NULL);
if (extra_launchers_dir != NULL) {
GList * launchers = NULL;
for (;;) {
+ const gchar *extra_launcher_file;
+
extra_launcher_file = g_dir_read_name (extra_launchers_dir);
if (extra_launcher_file == NULL)
break;