2009-04-11 06:05:47 -04:00
|
|
|
$OpenBSD: patch-app_commands_c,v 1.4 2009/04/11 10:05:47 ajacoutot Exp $
|
2007-10-18 10:18:40 -04:00
|
|
|
--- app/commands.c.orig Sun Mar 18 20:49:14 2007
|
2009-04-11 06:05:47 -04:00
|
|
|
+++ app/commands.c Sat Apr 11 11:16:22 2009
|
|
|
|
@@ -532,7 +532,7 @@ help_manual_callback (GtkAction *action)
|
2007-10-18 10:18:40 -04:00
|
|
|
const char *dentry;
|
|
|
|
GError *error = NULL;
|
|
|
|
|
|
|
|
- helpdir = dia_get_data_directory("help");
|
2008-05-16 07:55:29 -04:00
|
|
|
+ helpdir = g_strdup("${PREFIX}/share/doc/dia/html");
|
2007-10-18 10:18:40 -04:00
|
|
|
if (!helpdir) {
|
|
|
|
message_warning(_("Could not find help directory"));
|
|
|
|
return;
|
2009-04-11 06:05:47 -04:00
|
|
|
@@ -581,7 +581,7 @@ help_manual_callback (GtkAction *action)
|
2007-10-18 10:18:40 -04:00
|
|
|
ShellExecuteA (0, "open", helpindex, NULL, helpdir, SW_SHOWNORMAL);
|
|
|
|
#else
|
|
|
|
command = getenv("BROWSER");
|
2008-10-30 13:10:41 -04:00
|
|
|
- command = g_strdup_printf("%s 'file://%s' &", command ? command : "gnome-open", helpindex);
|
|
|
|
+ command = g_strdup_printf("%s 'file://%s' &", command ? command : "xdg-open", helpindex);
|
2007-10-18 10:18:40 -04:00
|
|
|
system(command);
|
|
|
|
g_free(command);
|
|
|
|
#endif
|
2009-04-11 06:05:47 -04:00
|
|
|
@@ -599,7 +599,7 @@ activate_url (GtkAboutDialog *about,
|
2007-10-18 10:18:40 -04:00
|
|
|
ShellExecuteA (0, "open", link, NULL, NULL, SW_SHOWNORMAL);
|
|
|
|
#else
|
|
|
|
gchar *command = getenv("BROWSER");
|
2008-10-30 13:10:41 -04:00
|
|
|
- command = g_strdup_printf("%s '%s' &", command ? command : "gnome-open", link);
|
|
|
|
+ command = g_strdup_printf("%s '%s' &", command ? command : "xdg-open", link);
|
2007-10-18 10:18:40 -04:00
|
|
|
system(command);
|
|
|
|
g_free(command);
|
|
|
|
#endif
|