[gnome-commander] Handle errors in command_open_terminal()
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Handle errors in command_open_terminal()
- Date: Sat, 2 Oct 2010 20:34:03 +0000 (UTC)
commit a550840e18d3bf9119f5ba0af7890222a291821d
Author: Thomas Jost <thomas jost gmail com>
Date: Sat Oct 2 22:31:42 2010 +0200
Handle errors in command_open_terminal()
src/gnome-cmd-user-actions.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index a3fd950..485e8ee 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -1154,7 +1154,8 @@ void command_open_terminal (GtkMenuItem *menuitem, gpointer not_used)
{
gchar *dpath = gnome_cmd_file_get_real_path (GNOME_CMD_FILE (get_fs (ACTIVE)->get_directory()));
- gnome_execute_terminal_shell (dpath, NULL);
+ if (gnome_execute_terminal_shell (dpath, NULL) == -1)
+ gnome_cmd_show_message (NULL, _("Unable to open terminal"), g_strerror (errno));
g_free (dpath);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]