diff options
| author | Cameron Katri <me@cameronkatri.com> | 2021-09-29 15:29:03 -0400 |
|---|---|---|
| committer | Cameron Katri <me@cameronkatri.com> | 2021-09-29 15:39:40 -0400 |
| commit | 0678403d9c7218138c2bc5cbf1bd92cc4d450adc (patch) | |
| tree | e0dbd058bc63ec028cd5ecca412759d410c36f82 /games/multimc/files/patch-api_gui_DesktopServices.cpp | |
| parent | d2542bf926bbae3289282f0866f312104abcfb09 (diff) | |
| download | freebsd-ports-0678403d9c7218138c2bc5cbf1bd92cc4d450adc.tar.gz freebsd-ports-0678403d9c7218138c2bc5cbf1bd92cc4d450adc.zip | |
Bunch of fixes
Diffstat (limited to 'games/multimc/files/patch-api_gui_DesktopServices.cpp')
| -rw-r--r-- | games/multimc/files/patch-api_gui_DesktopServices.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/games/multimc/files/patch-api_gui_DesktopServices.cpp b/games/multimc/files/patch-api_gui_DesktopServices.cpp deleted file mode 100644 index eb4fd15..0000000 --- a/games/multimc/files/patch-api_gui_DesktopServices.cpp +++ /dev/null @@ -1,56 +0,0 @@ ---- api/gui/DesktopServices.cpp.orig 2019-02-20 23:45:36 UTC -+++ api/gui/DesktopServices.cpp -@@ -7,7 +7,7 @@ - /** - * This shouldn't exist, but until QTBUG-9328 and other unreported bugs are fixed, it needs to be a thing. - */ --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - - #include <unistd.h> - #include <errno.h> -@@ -83,7 +83,7 @@ bool openDirectory(const QString &path, bool ensureExi - { - return QDesktopServices::openUrl(QUrl::fromLocalFile(dir.absolutePath())); - }; --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - return IndirectOpen(f); - #else - return f(); -@@ -97,7 +97,7 @@ bool openFile(const QString &path) - { - return QDesktopServices::openUrl(QUrl::fromLocalFile(path)); - }; --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - return IndirectOpen(f); - #else - return f(); -@@ -107,7 +107,7 @@ bool openFile(const QString &path) - bool openFile(const QString &application, const QString &path, const QString &workingDirectory, qint64 *pid) - { - qDebug() << "Opening file" << path << "using" << application; --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - // FIXME: the pid here is fake. So if something depends on it, it will likely misbehave - return IndirectOpen([&]() - { -@@ -121,7 +121,7 @@ bool openFile(const QString &application, const QStrin - bool run(const QString &application, const QStringList &args, const QString &workingDirectory, qint64 *pid) - { - qDebug() << "Running" << application << "with args" << args.join(' '); --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - // FIXME: the pid here is fake. So if something depends on it, it will likely misbehave - return IndirectOpen([&]() - { -@@ -139,7 +139,7 @@ bool openUrl(const QUrl &url) - { - return QDesktopServices::openUrl(url); - }; --#if defined(Q_OS_LINUX) -+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) - return IndirectOpen(f); - #else - return f(); |
