summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-07-29 16:42:04 +0300
committermonsta <[email protected]>2016-07-29 16:42:04 +0300
commit26b7a7c7bd97f6db5ab851fe9c1e315ba0284f57 (patch)
tree7d26b9127e3468a5722d51eaac4dc461df7f9b89
parenta63c9b3ec8337238322f967762a23511a5ee8262 (diff)
downloadcaja-extensions-26b7a7c7bd97f6db5ab851fe9c1e315ba0284f57.tar.bz2
caja-extensions-26b7a7c7bd97f6db5ab851fe9c1e315ba0284f57.tar.xz
open-terminal: don't use #define just for one case
-rw-r--r--open-terminal/caja-open-terminal.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/open-terminal/caja-open-terminal.c b/open-terminal/caja-open-terminal.c
index c3760e8..f8bcec2 100644
--- a/open-terminal/caja-open-terminal.c
+++ b/open-terminal/caja-open-terminal.c
@@ -164,8 +164,6 @@ default_terminal_application (void)
return result;
}
-#define get_desktop_dir() g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP))
-
static void
parse_sftp_uri (GFile *file, char **host, guint *port, char **user,
char **path)
@@ -302,7 +300,7 @@ open_terminal_callback (CajaMenuItem *item,
if (desktop_is_home_dir () || desktop_opens_home_dir ()) {
working_directory = g_strdup (g_get_home_dir ());
} else {
- working_directory = get_desktop_dir ();
+ working_directory = g_strdup (g_get_user_special_dir (G_USER_DIRECTORY_DESKTOP));
}
break;