summaryrefslogtreecommitdiff
path: root/x11/albert/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/albert/files')
-rw-r--r--x11/albert/files/patch-plugins_files_src_plugin.cpp11
-rw-r--r--x11/albert/files/patch-plugins_python_plugins_timer_____init____.py19
-rw-r--r--x11/albert/files/patch-plugins_spotify_src_items.cpp20
-rw-r--r--x11/albert/files/patch-plugins_widgetsboxmodel-qss_src_window.cpp13
-rw-r--r--x11/albert/files/patch-plugins_widgetsboxmodel_src_window.cpp15
-rw-r--r--x11/albert/files/patch-src_platform_xdg_desktopentryparser.cpp14
-rw-r--r--x11/albert/files/patch-src_terminalprovider.cpp11
7 files changed, 62 insertions, 41 deletions
diff --git a/x11/albert/files/patch-plugins_files_src_plugin.cpp b/x11/albert/files/patch-plugins_files_src_plugin.cpp
deleted file mode 100644
index 4306de013158..000000000000
--- a/x11/albert/files/patch-plugins_files_src_plugin.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- plugins/files/src/plugin.cpp.orig 2023-01-31 09:29:00 UTC
-+++ plugins/files/src/plugin.cpp
-@@ -116,7 +116,7 @@ void Plugin::updateIndexItems()
- ii.emplace_back(update_item, update_item->text());
-
- // Add trash item
--#if defined(Q_OS_LINUX)
-+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
- auto trash_path = "trash:///";
- #elif defined(Q_OS_MAC)
- auto trash_path = QString("file://%1/.Trash").arg(QDir::homePath());
diff --git a/x11/albert/files/patch-plugins_python_plugins_timer_____init____.py b/x11/albert/files/patch-plugins_python_plugins_timer_____init____.py
deleted file mode 100644
index 9334985cce1f..000000000000
--- a/x11/albert/files/patch-plugins_python_plugins_timer_____init____.py
+++ /dev/null
@@ -1,19 +0,0 @@
---- plugins/python/plugins/timer/__init__.py.orig 2023-02-05 15:51:51 UTC
-+++ plugins/python/plugins/timer/__init__.py
-@@ -65,7 +65,8 @@ class Plugin(QueryHandler):
- subprocess.Popen(["aplay", self.soundPath])
- elif platform == "darwin":
- subprocess.Popen(["afplay", self.soundPath])
--
-+ else:
-+ subprocess.Popen(["play", self.soundPath])
- self.deleteTimer(timer)
-
- def id(self):
-@@ -130,4 +131,4 @@ class Plugin(QueryHandler):
- ))
-
- if items:
-- query.add(items)
-\ No newline at end of file
-+ query.add(items)
diff --git a/x11/albert/files/patch-plugins_spotify_src_items.cpp b/x11/albert/files/patch-plugins_spotify_src_items.cpp
new file mode 100644
index 000000000000..f291fd3a0745
--- /dev/null
+++ b/x11/albert/files/patch-plugins_spotify_src_items.cpp
@@ -0,0 +1,20 @@
+--- plugins/spotify/src/items.cpp.orig 2025-07-13 18:00:53 UTC
++++ plugins/spotify/src/items.cpp
+@@ -24,7 +24,7 @@ static void pauseSpotify()
+ !error.isEmpty())
+ WARN << error;
+ }
+-#elif defined Q_OS_LINUX
++#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+ #include <QDBusInterface>
+ void pauseSpotify()
+ {
+@@ -35,6 +35,8 @@ void pauseSpotify()
+ QDBusConnection::sessionBus()
+ ).call(u"Pause"_s);
+ }
++#else
++# error "Unknown architecture"
+ #endif
+
+ SpotifyItem::SpotifyItem(RestApi &api,
diff --git a/x11/albert/files/patch-plugins_widgetsboxmodel-qss_src_window.cpp b/x11/albert/files/patch-plugins_widgetsboxmodel-qss_src_window.cpp
new file mode 100644
index 000000000000..6d9fd7e10039
--- /dev/null
+++ b/x11/albert/files/patch-plugins_widgetsboxmodel-qss_src_window.cpp
@@ -0,0 +1,13 @@
+--- plugins/widgetsboxmodel-qss/src/window.cpp.orig 2025-07-13 18:02:04 UTC
++++ plugins/widgetsboxmodel-qss/src/window.cpp
+@@ -729,8 +729,9 @@ bool Window::event(QEvent *event)
+ if (auto have_dark_system_palette = haveDarkSystemPalette();
+ dark_mode_ != have_dark_system_palette)
+ {
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+ QApplication::setPalette(QApplication::style()->standardPalette());
++# else "Unknown architecture"
+ #endif
+ // at(): no catch, theme_dark_ theme_light_ should exist
+ dark_mode_ = have_dark_system_palette;
diff --git a/x11/albert/files/patch-plugins_widgetsboxmodel_src_window.cpp b/x11/albert/files/patch-plugins_widgetsboxmodel_src_window.cpp
new file mode 100644
index 000000000000..e8c143a7f606
--- /dev/null
+++ b/x11/albert/files/patch-plugins_widgetsboxmodel_src_window.cpp
@@ -0,0 +1,15 @@
+--- plugins/widgetsboxmodel/src/window.cpp.orig 2025-07-13 17:56:08 UTC
++++ plugins/widgetsboxmodel/src/window.cpp
+@@ -1089,9 +1089,11 @@ bool Window::event(QEvent *event)
+
+ else if (event->type() == QEvent::ThemeChange)
+ {
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
+ // No automatic palette update on GNOME
+ QApplication::setPalette(QApplication::style()->standardPalette());
++#else
++# error "Unknown architecture"
+ #endif
+ dark_mode = haveDarkSystemPalette();
+ applyTheme((dark_mode) ? theme_dark_ : theme_light_);
diff --git a/x11/albert/files/patch-src_platform_xdg_desktopentryparser.cpp b/x11/albert/files/patch-src_platform_xdg_desktopentryparser.cpp
new file mode 100644
index 000000000000..65c7d8731b37
--- /dev/null
+++ b/x11/albert/files/patch-src_platform_xdg_desktopentryparser.cpp
@@ -0,0 +1,14 @@
+--- src/platform/xdg/desktopentryparser.cpp.orig 2025-07-13 18:27:36 UTC
++++ src/platform/xdg/desktopentryparser.cpp
+@@ -7,6 +7,11 @@ using namespace std;
+ using namespace albert::detail;
+ using namespace std;
+
++#if defined(__FreeBSD__)
++# include <libintl.h>
++# define dgettext(package, str) gettext(str)
++#endif
++
+ DesktopEntryParser::DesktopEntryParser(const QString &path)
+ {
+ if (QFile file(path); file.open(QIODevice::ReadOnly| QIODevice::Text))
diff --git a/x11/albert/files/patch-src_terminalprovider.cpp b/x11/albert/files/patch-src_terminalprovider.cpp
deleted file mode 100644
index c8bc59a7921f..000000000000
--- a/x11/albert/files/patch-src_terminalprovider.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/terminalprovider.cpp.orig 2023-02-05 13:24:46 UTC
-+++ src/terminalprovider.cpp
-@@ -32,7 +32,7 @@ static QString userShell()
- }
-
-
--#if defined(Q_OS_LINUX)
-+#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
-
-
- struct ExecutableTerminal : public Terminal