[dia] Bug 581529 - Use xdg-open instead of gnome-open



commit e63896d5c5021a02da284696a5a92a8c24d4390f
Author: Hans Breuer <hans breuer org>
Date:   Sun May 10 16:13:46 2009 +0200

    Bug 581529 - Use xdg-open instead of gnome-open
    
    By Vincent Untz 2009-05-05 22:55 UTC:
    Here's a patch to use xdg-open instead of gnome-open, for better
    integration when running outside of GNOME.
---
 app/commands.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/commands.c b/app/commands.c
index b695e9d..8686900 100644
--- a/app/commands.c
+++ b/app/commands.c
@@ -690,7 +690,7 @@ help_manual_callback (GtkAction *action)
   ShellExecuteA (0, "open", helpindex, NULL, helpdir, SW_SHOWNORMAL);
 #else
   command = getenv("BROWSER");
-  command = g_strdup_printf("%s 'file://%s' &", command ? command : "gnome-open", helpindex);
+  command = g_strdup_printf("%s 'file://%s' &", command ? command : "xdg-open", helpindex);
   system(command);
   g_free(command);
 #endif
@@ -708,7 +708,7 @@ activate_url (GtkAboutDialog *about,
   ShellExecuteA (0, "open", link, NULL, NULL, SW_SHOWNORMAL);
 #else
   gchar *command = getenv("BROWSER");
-  command = g_strdup_printf("%s '%s' &", command ? command : "gnome-open", link);
+  command = g_strdup_printf("%s '%s' &", command ? command : "xdg-open", link);
   system(command);
   g_free(command);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]