File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 60
60
61
61
#include < objc/objc-runtime.h>
62
62
#include < CoreServices/CoreServices.h>
63
+ #include < QProcess>
63
64
#endif
64
65
65
66
namespace GUIUtil {
@@ -399,7 +400,15 @@ bool openBitcoinConf()
399
400
configFile.close ();
400
401
401
402
/* Open bitcoin.conf with the associated application */
402
- return QDesktopServices::openUrl (QUrl::fromLocalFile (boostPathToQString (pathConfig)));
403
+ bool res = QDesktopServices::openUrl (QUrl::fromLocalFile (boostPathToQString (pathConfig)));
404
+ #ifdef Q_OS_MAC
405
+ // Workaround for macOS-specific behavior; see #15409.
406
+ if (!res) {
407
+ res = QProcess::startDetached (" /usr/bin/open" , QStringList{" -t" , boostPathToQString (pathConfig)});
408
+ }
409
+ #endif
410
+
411
+ return res;
403
412
}
404
413
405
414
ToolTipToRichTextFilter::ToolTipToRichTextFilter (int _size_threshold, QObject *parent) :
You can’t perform that action at this time.
0 commit comments