aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-08-09 12:54:25 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-08-09 12:54:25 +0200
commit6d93aba85b15b6479b7344333fb62ff77dd96f48 (patch)
tree49e7aa91173d302093da2fee6680a73c78eaa2b0
parentc0bb2944764b0d60b7c9e8ed3b133eb3e24a7261 (diff)
downloadlibayatana-indicator-6d93aba85b15b6479b7344333fb62ff77dd96f48.tar.gz
libayatana-indicator-6d93aba85b15b6479b7344333fb62ff77dd96f48.tar.bz2
libayatana-indicator-6d93aba85b15b6479b7344333fb62ff77dd96f48.zip
IndicatorDesktopShortcuts: use g_key_file_get_string for path
-rw-r--r--libindicator/indicator-desktop-shortcuts.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libindicator/indicator-desktop-shortcuts.c b/libindicator/indicator-desktop-shortcuts.c
index 6148aec..ba7a35c 100644
--- a/libindicator/indicator-desktop-shortcuts.c
+++ b/libindicator/indicator-desktop-shortcuts.c
@@ -613,11 +613,8 @@ indicator_desktop_shortcuts_nick_exec_with_context (IndicatorDesktopShortcuts *
}
/* If possible move to the proper launch path */
- gchar * path = g_key_file_get_locale_string(priv->keyfile,
- groupheader,
- G_KEY_FILE_DESKTOP_KEY_PATH,
- NULL,
- NULL);
+ gchar * path = g_key_file_get_string(priv->keyfile, groupheader,
+ G_KEY_FILE_DESKTOP_KEY_PATH, NULL);
if (path && *path != '\0' && chdir(path) < 0) {
g_warning ("Impossible to run action '%s' from path '%s'", nick, path);