File budgie.patch of Package xdg-utils
From 36ad28f5dd7a670cf552015ac2813cbea1b86655 Mon Sep 17 00:00:00 2001
From: Callum Farmer <gmbr3@opensuse.org>
Date: Fri, 19 Dec 2025 13:13:01 +0000
Subject: [PATCH 1/2] Initial support for Budgie Desktop
In all cases, forward Budgie users to the GNOME implementation
xdg-screensaver isn't implemented
Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
---
scripts/xdg-copy.in | 2 +-
scripts/xdg-email.in | 2 +-
scripts/xdg-file-dialog.in | 8 ++++----
scripts/xdg-mime.in | 2 +-
scripts/xdg-open.in | 2 +-
scripts/xdg-settings.in | 2 +-
scripts/xdg-su.in | 2 +-
scripts/xdg-terminal.in | 2 +-
scripts/xdg-utils-common.in | 3 +++
9 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/scripts/xdg-copy.in b/scripts/xdg-copy.in
index bff5c40..650583a 100644
--- a/scripts/xdg-copy.in
+++ b/scripts/xdg-copy.in
@@ -98,7 +98,7 @@ case "$DE" in
copy_kde "$source" "$dest"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
copy_gnome "$source" "$dest"
;;
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in
index 1d7b384..39ec6a3 100644
--- a/scripts/xdg-email.in
+++ b/scripts/xdg-email.in
@@ -481,7 +481,7 @@ case "$DE" in
open_gnome "${mailto}" "$attach"
;;
- gnome3|cinnamon|lxde|mate|deepin)
+ gnome3|cinnamon|lxde|mate|deepin|budgie)
open_gnome3 "${mailto}" "$attach"
;;
diff --git a/scripts/xdg-file-dialog.in b/scripts/xdg-file-dialog.in
index 5b914f9..6b200c3 100644
--- a/scripts/xdg-file-dialog.in
+++ b/scripts/xdg-file-dialog.in
@@ -304,7 +304,7 @@ if [ "$action" = "openfilename" ]; then
open_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
open_zenity "$filename"
;;
@@ -318,7 +318,7 @@ elif [ "$action" = "openfilenamelist" ]; then
open_multi_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
open_multi_zenity "$filename"
;;
@@ -332,7 +332,7 @@ elif [ "$action" = "savefilename" ]; then
save_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
save_zenity "$filename"
;;
@@ -346,7 +346,7 @@ elif [ "$action" = "directory" ]; then
directory_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
directory_zenity "$filename"
;;
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
index 445f891..86886ba 100644
--- a/scripts/xdg-mime.in
+++ b/scripts/xdg-mime.in
@@ -729,7 +729,7 @@ if [ "$action" = "info" ]; then
info_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce)
+ gnome*|cinnamon|lxde|mate|xfce|budgie)
info_gnome "$filename"
;;
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 1f86edf..451b5b8 100755
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -865,7 +865,7 @@ open_one_argument()
open_deepin "$url"
;;
- gnome3|cinnamon)
+ gnome3|cinnamon|budgie)
open_gnome3 "$url"
;;
diff --git a/scripts/xdg-settings.in b/scripts/xdg-settings.in
index bedd57b..53869d1 100755
--- a/scripts/xdg-settings.in
+++ b/scripts/xdg-settings.in
@@ -1106,7 +1106,7 @@ case "$DE" in
dispatch_specific gnome "$@"
;;
- gnome3|cinnamon|lxde|mate)
+ gnome3|cinnamon|lxde|mate|budgie)
dispatch_specific gnome3 "$@"
;;
diff --git a/scripts/xdg-su.in b/scripts/xdg-su.in
index 0a993de..d2ee079 100644
--- a/scripts/xdg-su.in
+++ b/scripts/xdg-su.in
@@ -198,7 +198,7 @@ case "$DE" in
su_kde
;;
- gnome*|cinnamon|lxde|mate|deepin)
+ gnome*|cinnamon|lxde|mate|deepin|budgie)
su_gnome
;;
diff --git a/scripts/xdg-terminal.in b/scripts/xdg-terminal.in
index aea98de..71143f1 100644
--- a/scripts/xdg-terminal.in
+++ b/scripts/xdg-terminal.in
@@ -263,7 +263,7 @@ case "$DE" in
terminal_gnome "$command"
;;
- gnome3)
+ gnome3|budgie)
terminal_gsettings org.gnome.desktop.default-applications.terminal "$command"
;;
diff --git a/scripts/xdg-utils-common.in b/scripts/xdg-utils-common.in
index e747310..d5bf63e 100644
--- a/scripts/xdg-utils-common.in
+++ b/scripts/xdg-utils-common.in
@@ -394,6 +394,9 @@ detectDE()
XFCE)
DE=xfce
;;
+ Budgie)
+ DE=budgie
+ ;;
X-Generic)
DE=generic
;;
--
GitLab
From 09542d33c5c3ec9d1a079ffb73bb02aaf2dabe17 Mon Sep 17 00:00:00 2001
From: Callum Farmer <gmbr3@opensuse.org>
Date: Tue, 23 Dec 2025 12:36:18 +0000
Subject: [PATCH 2/2] xdg-file-dialog/xdg-screensaver only for Budgie 10.9
---
scripts/xdg-file-dialog.in | 52 +++++++++++++++++++++++++++++++++++---
scripts/xdg-screensaver.in | 11 ++++++++
2 files changed, 59 insertions(+), 4 deletions(-)
diff --git a/scripts/xdg-file-dialog.in b/scripts/xdg-file-dialog.in
index 6b200c3..c450f0c 100644
--- a/scripts/xdg-file-dialog.in
+++ b/scripts/xdg-file-dialog.in
@@ -304,10 +304,21 @@ if [ "$action" = "openfilename" ]; then
open_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce|budgie)
+ gnome*|cinnamon|lxde|mate|xfce)
open_zenity "$filename"
;;
+ budgie)
+ case "${BUDGIE_SESSION_VERSION}" in
+ 10.9*)
+ open_zenity "$filename"
+ ;;
+ *)
+ exit_failure_operation_impossible "xdg-file-dialog is unsupported for Budgie ${BUDGIE_SESSION_VERSION}"
+ ;;
+ esac
+ ;;
+
*)
exit_failure_operation_impossible "no method available for opening a filename dialog"
;;
@@ -318,10 +329,21 @@ elif [ "$action" = "openfilenamelist" ]; then
open_multi_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce|budgie)
+ gnome*|cinnamon|lxde|mate|xfce)
open_multi_zenity "$filename"
;;
+ budgie)
+ case "${BUDGIE_SESSION_VERSION}" in
+ 10.9*)
+ open_multi_zenity "$filename"
+ ;;
+ *)
+ exit_failure_operation_impossible "xdg-file-dialog is unsupported for Budgie ${BUDGIE_SESSION_VERSION}"
+ ;;
+ esac
+ ;;
+
*)
exit_failure_operation_impossible "no method available for opening a filename dialog"
;;
@@ -332,10 +354,21 @@ elif [ "$action" = "savefilename" ]; then
save_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce|budgie)
+ gnome*|cinnamon|lxde|mate|xfce)
save_zenity "$filename"
;;
+ budgie)
+ case "${BUDGIE_SESSION_VERSION}" in
+ 10.9*)
+ save_zenity "$filename"
+ ;;
+ *)
+ exit_failure_operation_impossible "xdg-file-dialog is unsupported for Budgie ${BUDGIE_SESSION_VERSION}"
+ ;;
+ esac
+ ;;
+
*)
exit_failure_operation_impossible "no method available for opening a filename dialog"
;;
@@ -346,10 +379,21 @@ elif [ "$action" = "directory" ]; then
directory_kde "$filename"
;;
- gnome*|cinnamon|lxde|mate|xfce|budgie)
+ gnome*|cinnamon|lxde|mate|xfce)
directory_zenity "$filename"
;;
+ budgie)
+ case "${BUDGIE_SESSION_VERSION}" in
+ 10.9*)
+ directory_zenity "$filename"
+ ;;
+ *)
+ exit_failure_operation_impossible "xdg-file-dialog is unsupported for Budgie ${BUDGIE_SESSION_VERSION}"
+ ;;
+ esac
+ ;;
+
*)
exit_failure_operation_impossible "no method available for opening a directory dialog"
;;
diff --git a/scripts/xdg-screensaver.in b/scripts/xdg-screensaver.in
index a9f7fa7..655033c 100644
--- a/scripts/xdg-screensaver.in
+++ b/scripts/xdg-screensaver.in
@@ -134,6 +134,17 @@ perform_action()
xfce)
[ -n "$DISPLAY" ] && screensaver_xserver "$1"
;;
+
+ budgie)
+ case "${BUDGIE_SESSION_VERSION}" in
+ 10.9*)
+ screensaver_gnome_screensaver "$1"
+ ;;
+ *)
+ exit_failure_operation_impossible "xdg-screensaver is unsupported for Budgie ${BUDGIE_SESSION_VERSION}"
+ ;;
+ esac
+ ;;
''|generic)
[ -n "$DISPLAY" ] && screensaver_xserver "$1"
--
GitLab