aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-02-15 13:22:45 -0600
committerTed Gould <ted@gould.cx>2010-02-15 13:22:45 -0600
commit20698c326aa8ae2bc4061d77d79b3554cf32ccbc (patch)
treefb60e952f43ae5eb91a87c4800c4641f42ab2b6c
parent2edf04c593023c304c486c6cb9bc5d091a76368c (diff)
downloadayatana-indicator-messages-20698c326aa8ae2bc4061d77d79b3554cf32ccbc.tar.gz
ayatana-indicator-messages-20698c326aa8ae2bc4061d77d79b3554cf32ccbc.tar.bz2
ayatana-indicator-messages-20698c326aa8ae2bc4061d77d79b3554cf32ccbc.zip
If we see a keyfile, use the keyfile processing.
-rw-r--r--src/messages-service.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index ff6c62d..52e9a48 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -1057,7 +1057,11 @@ app_dir_changed (GFileMonitor * monitor, GFile * file, GFile * other_file, GFile
case G_FILE_MONITOR_EVENT_CREATED: {
gchar * path = g_file_get_path(file);
g_debug("\tCreate: %s", path);
- g_idle_add(build_launcher, path);
+ if (g_str_has_suffix(path, "keyfile")) {
+ g_idle_add(build_launcher_keyfile, path);
+ } else {
+ g_idle_add(build_launcher, path);
+ }
break;
}
default:
@@ -1295,7 +1299,11 @@ build_launchers (gpointer data)
while ((filename = g_dir_read_name(dir)) != NULL) {
g_debug("Found file: %s", filename);
gchar * path = g_build_filename(directory, filename, NULL);
- g_idle_add(build_launcher, path);
+ if (g_str_has_suffix(path, "keyfile")) {
+ g_idle_add(build_launcher_keyfile, path);
+ } else {
+ g_idle_add(build_launcher, path);
+ }
}
g_dir_close(dir);