mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 11:10:32 -04:00
- New tool: Word Register - New tool: Hand Writing - New tool: Character Palette - Prediction feature - Correct suggestion feature - dictionary improvements Feature safe: yes
22 lines
757 B
C++
22 lines
757 B
C++
--- base/process.cc.orig 2011-12-04 16:22:26.103607664 +0900
|
|
+++ base/process.cc 2011-12-04 16:46:51.045606717 +0900
|
|
@@ -120,13 +120,18 @@
|
|
return ShellExecuteInSystemDir(L"open", wurl.c_str(), NULL, SW_SHOW);
|
|
#endif
|
|
|
|
-#ifdef OS_LINUX
|
|
+#if defined(OS_LINUX) && !defined(__FreeBSD__)
|
|
static const char kBrowserCommand[] = "/usr/bin/xdg-open";
|
|
// xdg-open which uses kfmclient or gnome-open internally works both on KDE
|
|
// and GNOME environments.
|
|
return SpawnProcess(kBrowserCommand, url);
|
|
#endif // LINUX
|
|
|
|
+#ifdef __FreeBSD__
|
|
+ static const char kBrowserCommand[] = "@@LOCALBASE@@/bin/xdg-open";
|
|
+ return SpawnProcess(kBrowserCommand, url);
|
|
+#endif
|
|
+
|
|
#ifdef OS_MACOSX
|
|
return MacProcess::OpenBrowserForMac(url);
|
|
#endif // OS_MACOSX
|