summaryrefslogtreecommitdiff
path: root/open-terminal
diff options
context:
space:
mode:
Diffstat (limited to 'open-terminal')
-rw-r--r--open-terminal/caja-open-terminal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/open-terminal/caja-open-terminal.c b/open-terminal/caja-open-terminal.c
index 2f5efd1..733a90f 100644
--- a/open-terminal/caja-open-terminal.c
+++ b/open-terminal/caja-open-terminal.c
@@ -279,6 +279,7 @@ static void
open_terminal_callback (CajaMenuItem *item,
CajaFileInfo *file_info)
{
+ GdkDisplay *display;
gchar *display_str;
const gchar *old_display_str;
gchar *uri;
@@ -336,8 +337,9 @@ open_terminal_callback (CajaMenuItem *item,
old_display_str = g_getenv ("DISPLAY");
screen = g_object_get_data (G_OBJECT (item), "CajaOpenTerminal::screen");
+ display = gdk_screen_get_display (screen);
if (screen != NULL) {
- display_str = gdk_screen_make_display_name (screen);
+ display_str = g_strdup (gdk_display_get_name (display));
g_setenv ("DISPLAY", display_str, TRUE);
}