summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-program-choosing.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2002-01-28 23:31:40 +0000
committerDarin Adler <darin@src.gnome.org>2002-01-28 23:31:40 +0000
commit39c3dcc03181e4f3b92d026286b9292247de92bf (patch)
tree385a24135dcc95aa68a89a675878784a4ff44ea7 /libnautilus-private/nautilus-program-choosing.c
parentaa25134442949eb566d7d926dd9415a2faf6a1b6 (diff)
downloadnautilus-39c3dcc03181e4f3b92d026286b9292247de92bf.tar.gz
Changed the system(3) call to launch application from command. Instead use
* libnautilus-private/nautilus-program-choosing.c (nautilus_launch_application_from_command): Changed the system(3) call to launch application from command. Instead use eel_gnome_shell_execute. * src/file-manager/fm-directory-view.c (activate_callback): Now use newly public NautilusDesktopFile class & nautilus_desktop_file_launch to launch the corresponding command. * libnautilus-private/nautilus-desktop-file-loader.c: * libnautilus-private/nautilus-desktop-file-loader.h: Made the NautilusDesktopFile class public. The struct has been moved from the source to the header. The nautilus_desktop_file_new method is not static any more. * libnautilus-private/nautilus-desktop-file-loader.c (nautilus_desktop_file_launch): Add the locale name taken from the desktop file to display it through xalf (launch feedback).
Diffstat (limited to 'libnautilus-private/nautilus-program-choosing.c')
-rw-r--r--libnautilus-private/nautilus-program-choosing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-program-choosing.c b/libnautilus-private/nautilus-program-choosing.c
index 526d5b6be..78170090c 100644
--- a/libnautilus-private/nautilus-program-choosing.c
+++ b/libnautilus-private/nautilus-program-choosing.c
@@ -674,16 +674,16 @@ nautilus_launch_application_from_command (const char *name,
}
xalf_prefix = get_xalf_prefix (name);
+ final_command = g_strconcat (xalf_prefix, full_command, NULL);
+ g_free (full_command);
+ g_free (xalf_prefix);
+
if (use_terminal) {
- final_command = g_strconcat (xalf_prefix, full_command, NULL);
eel_gnome_open_terminal (final_command);
} else {
- final_command = g_strconcat (xalf_prefix, full_command, " &", NULL);
- system (final_command);
+ eel_gnome_shell_execute (final_command);
}
g_free (final_command);
- g_free (full_command);
- g_free (xalf_prefix);
}