Sync from SUSE:ALP:Source:Standard:1.0 xdg-utils revision 2771dba23b6582089ded31cf8b412c22

This commit is contained in:
Adrian Schröter 2023-06-07 10:11:54 +02:00
commit ecd9cc54f4
11 changed files with 769 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,40 @@
From e47c61cb3c780cd091038c8b580eca6e10679a11 Mon Sep 17 00:00:00 2001
From: Christophe Giboudeaux <christophe@krop.fr>
Date: Wed, 30 Oct 2019 17:11:08 +0100
Subject: [PATCH] Don't run 'kreadconfig' if KDE_SESSION_VERSION is >= 5.
'kreadconfig' is a KDE4 executable. The program is called 'kreadconfig5' in
KDE Frameworks 5.xx.
---
scripts/xdg-terminal.in | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/scripts/xdg-terminal.in b/scripts/xdg-terminal.in
index 36a9833..05a3c44 100644
--- a/scripts/xdg-terminal.in
+++ b/scripts/xdg-terminal.in
@@ -30,7 +30,20 @@ _USAGE
terminal_kde()
{
- terminal=`kreadconfig --file kdeglobals --group General --key TerminalApplication --default konsole`
+ if [ -n "$KDE_SESSION_VERSION" ] && [ "$KDE_SESSION_VERSION" -ge 5 ]; then
+ local kreadconfig=kreadconfig$KDE_SESSION_VERSION
+ else
+ local kreadconfig=kreadconfig
+ fi
+
+ if which $kreadconfig >/dev/null 2>&1; then
+ local terminal=$($kreadconfig --file kdeglobals \
+ --group General \
+ --key TerminalApplication \
+ --default konsole)
+ else
+ exit_failure_operation_impossible "'$kreadconfig' was not found or is not executable"
+ fi
terminal_exec=`which $terminal 2>/dev/null`
--
2.23.0

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">git://anongit.freedesktop.org/xdg/xdg-utils</param>
<param name="changesgenerate">enable</param>
<param name="scm">git</param>
<param name="filename">xdg-utils</param>
<param name="versionformat">@PARENT_TAG@+%cd</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service mode="disabled" name="set_version"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">git://anongit.freedesktop.org/xdg/xdg-utils</param>
<param name="changesrevision">1a58bc28f6844898532daf9ee1bf6da7764955a9</param></service></servicedata>

View File

@ -0,0 +1,26 @@
From: Jiri Slaby <jslaby@suse.cz>
Subject: Install some more scripts
Why are they commented in the repo?
---
scripts/Makefile.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -20,11 +20,11 @@ SCRIPTS = \
xdg-open \
xdg-email \
xdg-screensaver \
- xdg-settings
-# xdg-su
+ xdg-settings \
+ xdg-su \
+ xdg-terminal
# xdg-copy \
# xdg-file-dialog
-# xdg-terminal
MANPAGES= $(SCRIPTS:%=man/%.1)
WEBPAGES= $(SCRIPTS:%=html/%.html)

View File

@ -0,0 +1,12 @@
diff -Nur xdg-utils-1.1.3+20200220/scripts/xdg-su.in xdg-utils-1.1.3+20200220-new/scripts/xdg-su.in
--- xdg-utils-1.1.3+20200220/scripts/xdg-su.in 2020-02-21 05:01:04.000000000 +0800
+++ xdg-utils-1.1.3+20200220-new/scripts/xdg-su.in 2021-04-24 20:48:46.501510379 +0800
@@ -198,7 +198,7 @@
su_kde
;;
- gnome*|cinnamon|lxde|mate)
+ gnome*|cinnamon|lxde|mate|deepin)
su_gnome
;;

BIN
xdg-utils-1.1.3+20210805.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

29
xdg-utils-egrep.patch Normal file
View File

@ -0,0 +1,29 @@
From 7538458c6c8999296a272c40bd4ec24132a51877 Mon Sep 17 00:00:00 2001
From: E5ten <ethancsommer@gmail.com>
Date: Thu, 16 Jan 2020 02:06:09 +0000
Subject: [PATCH] switch from non-standard "egrep" to POSIX "grep -E"
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1203092
https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/21
https://gitlab.freedesktop.org/xdg/xdg-utils/-/merge_requests/44
https://gitlab.freedesktop.org/xdg/xdg-utils/-/issues/207
---
scripts/xdg-open.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 202f3e3..35b0522 100644
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -72,7 +72,7 @@ get_key()
is_file_url_or_path()
{
if echo "$1" | grep -q '^file://' \
- || ! echo "$1" | egrep -q '^[[:alpha:]][[:alpha:][:digit:]+\.\-]*:'; then
+ || ! echo "$1" | grep -Eq '^[[:alpha:]][[:alpha:][:digit:]+\.\-]*:'; then
return 0
else
return 1
--
GitLab

507
xdg-utils.changes Normal file
View File

@ -0,0 +1,507 @@
-------------------------------------------------------------------
Sun Sep 4 17:29:24 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
- xdg-open: convert usage of obsolete egrep to grep -E
add xdg-utils-egrep.patch, boo#1203092
-------------------------------------------------------------------
Tue Jul 26 07:16:43 UTC 2022 - jslaby@suse.cz
- Update to version 1.1.3+20210805:
* xdg-email fails on kde with desktop files #187
- switch to obs_scm
-------------------------------------------------------------------
Mon Aug 30 08:54:16 UTC 2021 - jslaby@suse.cz
- Update to version 1.1.3+20201113:
* Fix xdg-settings support for default-web-browser for Plasma 5.19+
-------------------------------------------------------------------
Sat Apr 24 12:51:58 UTC 2021 - Hillwood Yang <hillwood@opensuse.org>
- Add support-deepin-desktop.patch
-------------------------------------------------------------------
Wed Dec 30 15:09:47 UTC 2020 - Frederic Crozat <fcrozat@suse.com>
- Move call-browser and desktop-launch symlink from
desktop-data-openSUSE/SLE to xdg-utils (bsc#170316).
-------------------------------------------------------------------
Tue Jun 09 06:43:27 UTC 2020 - jslaby@suse.com
- Update to version 1.1.3+20200220:
* fixed #166: xdg-open dose not search correctly in directories with spaces in the name
-------------------------------------------------------------------
Wed Oct 30 16:12:34 UTC 2019 - Christophe Giboudeaux <christophe@krop.fr>
- Add 0001-Don-t-run-kreadconfig-if-KDE_SESSION_VERSION-is-5.patch
to read the KDE Frameworks config file if necessary (boo#1155462)
-------------------------------------------------------------------
Mon Sep 30 10:47:49 UTC 2019 - jslaby@suse.com
- Update to version 1.1.3+20190413:
* xdg-mime: return correct exit code for GNOME
-------------------------------------------------------------------
Tue Apr 23 04:44:28 UTC 2019 - jslaby@suse.com
- Update to version 1.1.3+20190401:
* support digits in uri scheme regex
* Enable cinnamon screensaver for xdg aware desktop environments (eg lxqt)
* xdg-open: fix comment typo
* xdg-su: fix some easy TODOs
* xdg-screensaver: Sanitise window name before sending it over the bus
* Fixes -x argument, which is the default for {gnome,mate}-terminal
* Fix a bug when xdg-terminal needs gsettings to get the default terminal
* test-lib.sh: run: eat xdg-open's exit code
* xdg-open: handle file://localhost/
* Restore matching of older deepin names
* xdg-email: Support for Deepin
* xdg-open: better pcmanfm check (BR106636,BR106161)
* open for post 1.1.3 development
- Removed (merged upstream):
* xdg-terminal-fix-gsettings.patch
* xdg-terminal-fix-terminal--x-arg.patch
- Fix URL
-------------------------------------------------------------------
Wed May 23 09:17:31 UTC 2018 - alarrosa@suse.com
- Update to version 20180510 (1.1.3):
* bump version, prep for 1.1.3 release
* xdg-open: use pcmanfm only if it is available (BR106161)
* Add Deepin Desktop Environment support.
* Avoid argument injection vulnerability in open_envvar() (CVE-2017-18266,
boo#1093086, fdo#103807)
* xdg-settings: check_browser is broken under kde when just the binary
is specified (BR106343)
* xdg-open: Fixes LXQt behavior
* xdg-mime awk script syntax error (BR104298)
* Spelling fixes (BR103255)
* xdg-mime.1: Add missing period
* Fix tests for 1f8e58d51e6fb3f50f59ed2d8265f2f346ac68e6
- Drop fix-kde-browser-check.patch which is already included upstream
-------------------------------------------------------------------
Tue May 1 05:28:49 UTC 2018 - sflees@suse.de
- boo#1051353 can't set default browser on kde.
* fix-kde-browser-check.patch
-------------------------------------------------------------------
Tue May 23 09:30:35 UTC 2017 - jslaby@suse.com
- Update to version 20170508:
* xdg-open: Add "chromium" to fallback browsers
* changelog for prior commit
* xdg-mime: fails on encountering a list for x-scheme-handler (BR44163)
* common: implement vendor dirs in desktop_file_to_binary (BR44163)
* Add better support for Enlightenment and LXQt (BR98561)
* xdg-screensaver: Restore previous X11 screensaver timeout (BR#98509)
* adjust version for release/tag
- removed common-vendor-dirs-in-desktop_to_binary.patch
- removed fix-enlightenment-lxqt-support.patch
- removed xdg-mime-return-existing-desktop-files.patch
-------------------------------------------------------------------
Tue Nov 15 00:26:14 UTC 2016 - sflees@suse.de
- Update to 20160610
* Fixes for last update
- boo#1004321 desktop files with a - are still valid, issue in
common-vendor-dirs-in-desktop_to_binary.patch
- boo#959912 Introduce LXQt support, renamed
fix-enlightenment-support.patch to fix-enlightenment-lxqt-support.patch
-------------------------------------------------------------------
Fri May 20 04:54:39 UTC 2016 - sflees@suse.de
- Update to 20160520
* xdg-mime: support for KDE Frameworks 5.6
* xdg-mime does not write the file it reads in a query (BR95051)
* xdg-screensaver: Add cinnamon-screensaver D-Bus API support.
* xdg-open: standardize output redirection style
- Fix issues related to xdg-open/xdg-mime generic code paths.
* common-vendor-dirs-in-desktop_to_binary.patch
* xdg-mime-return-existing-desktop-files.patch
-------------------------------------------------------------------
Sat Feb 6 11:12:43 UTC 2016 - sor.alexei@meowr.ru
- Fix a mistake with build architecture.
-------------------------------------------------------------------
Fri Jan 22 12:34:23 UTC 2016 - sor.alexei@meowr.ru
- Update to 20151219:
* xdg-open: Improve fallbacks, add open_generic (almost)
everywhere (fdo#93442).
* xdg-open: Standardise output redirection style.
- Add xdg-terminal-fix-terminal--x-arg.patch: fix for "-x" usage
(default option for MATE and GNOME terminals).
- Spec cleanup.
-------------------------------------------------------------------
Sun Dec 6 10:23:11 UTC 2015 - jslaby@suse.com
- update to 20151112
* xdg-utils-common: bump version number
* Check for $WAYLAND_DISPLAY as well as $DISPLAY.
-------------------------------------------------------------------
Thu Dec 3 17:08:12 UTC 2015 - ronisbr@gmail.com
- Add patch `xdg-terminal-fix-gsettings.patch` to fix upstream
bfo#93231
-------------------------------------------------------------------
Tue Nov 3 10:55:15 UTC 2015 - jslaby@suse.com
- update to 20151005
* ChangeLog: add debian bug number
* ChangeLog: add some space
* xdg-open: Add proper quoting so that files with spaces in their names can be opened in generic mode and LXDE
* t-xdg-open: test opening files with spaces in LXDE too
* t-xdg-open: quote file variable properly in mock_xdg_mime()
* xdg-open: Fix regression in generic mode (wrong variable name)
* t-xdg-open: improve mocking of xdg-mime (check all arguments)
* t-xdg-open: can open -> opens
* t-xdg-open: test that it can open files with spaces in their names in generic mode
* t-xdg-open: move generic open file testing to its own function
* t-xdg-open: move xdg-mime mocking to its own function
* t-xdg-open: use the mock script argument instead of writing a mock script manually
* oops, fix spelling of name
* xdg-screensaver: Run 'xset -dpms' and then 'xset +dpms' to reset the DPMS timer
* add .dir-locals.el that switches off change-log-mode in Emacs for ChangeLog
* add t-xdg-screensaver
* xdg-screensaver: handle XDG_CURRENT_DESKTOP=X-Generic
* test-lib: take arbitrary script code as argument to mock
* remove org.freedesktop.ScreenSaver support from TODO
* release xdg-utils 1.1.0
* xdg-email: Remove obsolete references to http://portland.freedesktop.org/wiki/EmailConfig from the manual
* add releaseinfo element to xdg-settings manual
* Add references to specifications to the manuals
* xdg-open: use sed to remove file URL query strings, the shell will interpret '?' as any character despite escaping
* xdg-open: Only strip queries (?) and fragments (#) from file URLs before decoding them, not from (decoded) paths
* t-xdg-open: test that it can open files with # characters in generic mode
* t-xdg-open: test that it can open files in generic mode
* t-xdg-open: under -> in
* t-xdg-open: separate out proper testcases
* autotests: don't print test filename
* xdg-email: Rewrite open_kde()
* t-xdg-email: update KDE tests
* autotests: Add t-xdg-email.sh with KDE5 test
* Revert "Remove .sh extension from autotests"
* Remove .sh extension from autotests
* +x on t-xdg-settings.sh
* xdg-settings: apply basename to browser desktop file in generic mode
* t-xdg-settings: test $BROWSER in generic mode
* xdg-settings: Add a proper generic mode.
* xdg-settings: Detect generic DE instead of failing. (Debian bug #787791)
* autotests: add t-xdg-settings.sh
* add /failed-tests to autotests/.gitignore
* test-lib: add mock_output()
* xdg-open, xdg-email: Add iceweasel to the list of fallback browsers. (Debian bug #788047)
* add Debian bug number to ChangeLog
* test-lib: better assertion failed message for assert_run
* indentation
* use $LABHOME/.local/share for $XDG_DATA_HOME
* is -> are
* t-xdg-open: also test Cinnamon
* xdg-open: Fall back to generic mode if gvfs-open and gnome-open are missing. Don't try to use gnome-open if running under GNOME 3 or Cinnamon.
* t-xdg-open.sh: test that gnome3 and gnome2 fall back to generic if gvfs-open and gnome-open are missing
* xdg-mime: Check ~/.config/mimeapps.list instead of ~/.config/applications/mimeapps.list when looking for default application.
* test-lib: always mock x-www-browser so we have a fallback
* put default apps in $XDG_CONFIG_HOME/mimeapps.list
* test-lib: add mock_desktop_file and mock_default_app
* test-lib: add XDG_CONFIG_HOME and create it in reset_lab_()
* test-lib: nicer output formatting
* merge t-xdg-open-url and t-xdg-open-file into t-xdg-open
* autotests: set COMMAND_TESTED in each test file and rename test_that to test_that_it which prints the command to be tested. Also remove test file printing from makefile
* test-lib: don't trace which commands are run unless TRACE_RUN=1
* add test_that invocations before every test
* test-lib: rename setup_lab to reset_lab_
* test-lib: add test_that function that resets the lab, echoes the argument and records it
* test-lib: add XDG_CONFIG_DIRS to environment
* autotests: add LABHOME directory lab/home and set HOME to LABHOME when running xdg-utils commands
* test-lib: clear $BROWSER in setup_lab
* xdg-utils-common: Add support for GNOME-Flashback:GNOME value X-Generic.
* xdg-open: Percent-decode file:// URLs in open_lxde and add testcase. (BR89654)
* autotests/Makefile.in: use rm -f insted of -rm
* autotests: remove Makefile in distclean target
* speling
* xdg-icon-resouce: Don't try to install anything into empty $icon_dir's.
* add autotests/t-xdg-icon-resource.sh
* test-lib.sh: pass on XDG_UTILS_DEBUG_LEVEL in run()
* autotests: add autotest target to subdir makefile
* test-lib.sh: add assert_file_exists
* test-lib.sh: create hicolor icon directories in lab
* add changelog entry: xdg-open: Try www-browser first of the non-X browsers.
* Merge branch 'feature/try-www-browser-first' into upstream
* add changelog entry: xdg-open: Add support for running without X.
* Merge branch 'feature/no-X' into upstream
* changelog message: xdg-email: Add support for the environment variable.
* Merge branch 'feature/mailer-envvar' into upstream
* thank Ben Hutchings for the gnome-screensaver perl script
* add changelog message for the gnome-screensaver suspend perl code
* Merge branch 'bug/gnome3-screensaver-suspend' into upstream
* use Makefile.in in autotests for consistency
* changelog entry for the new automatic test suite
* check that $BROWSER with %s is safe from shell injection
* use empty default target in autotests/Makefile to avoid running tests as part of the build process
* Merge branch 'bug/prefer-browser-envvar' into feature/autotests
* run tests with sh in case they lack the x-bit
* add extra blank line after test failures output
* add autotests to SUBDIRS in top-level makefile and add clean target
* collect failed assertions instead of aborting
* check that $BROWSER overrides mimeapps.list in generic mode
* add BROWSER to env
* add autotest target to top makefile
* Try $BROWSER first in generic mode if it is set by the user.
* add generic and lxde tests to t-xdg-open-url.sh
* add test t-xdg-mime-query-default.sh
* make applications directories and add assert_equal() function
* Introduce an automated test suite.
* move www-browser to separate feature/patch
* Try www-browser first when running without $DISPLAY.
* Add support for using xdg-open and xdg-email without X.
* Add $MAILER support to xdg-email.
* Use DBus API for GNOME since gnome-screensaver-command --poke has been removed
* xdg-email: Recipients passed to Thunderbird are incorrectly quoted (BR91996)
* xdg-email: generic mode does nothing (BR92008)
* xdg-email: Icedove support (BR91997)
* xdg-email: bashism: relies on bash's echo in run_thunderbird() (BR91990)
* xdg-open shell script contains bash code (BR86028)
* xdg-open: Add support for multi-word $BROWSER commands (BR91989)
* Changelog for previous commit
* xdg-icon-resource: quote var expansions
* xdg-icon-resource: does not support filenames with spaces (BR91758)
* xdg-screensaver support for xautolock (BR89655)
* xdg-screensaver: fix a comment typo
* xdg-mime: remove obsolete workaround for bug #33094
* amend changelog to be more specific
* add changelog for last batch of commits
* xdg-terminal: add support for GNOME3, Cinnamon, MATE
* xdg-su: add support for Cinnamon
* xdg-settings: add support for all GVfs-based desktops
* xdg-open: use cygstart on Cygwin
* xdg-open: fix operation on Darwin
* xdg-open: add support for Cinnamon
* xdg-mime: add support for all GVfs-based desktops
* xdg-mime: implement Mime Apps Spec
* xdg-file-dialog: use zenity on Cinnamon and MATE
* xdg-email: add support for all GVfs-based desktops
* xdg-copy: add support for all GVfs-based desktops
* Add detection of Cinnamon desktop
* Improve detection of GNOME Classic and Flashback sessions
* followup commit, copy-n-paste fail
* xdg-email: generic check for assigned mailto (BR79929)
* xdg-mime: search mimeinfo.cache in $xdg_user_dir too (BR31629)
* typo from previous commit
* xdg-open: does not exit if it does not recognize the mimetype (BR89902)
* xdg-desktop-menu: does not support filenames with spaces (BR66605)
* xdg-open: fix regression where & gets replaced with \\& in URLs
* xdg-email: thunderbird launch in xdg-email in gnome3 fails (BR61475)
* add ChangeLog entry for previous commit
* xdg-mime: do not report multiple desktop files (BR60329)
* one more s/$arg/$target/ rename fix for prior commit
* xdg-open: safer xdg-open (BR89130)
- Remove: xdg-mime-generic-do-not-return-more-than-one-default.patch
- Remove: xdg-screensaver-gnome-perl.diff
-------------------------------------------------------------------
Tue Jan 20 12:14:38 UTC 2015 - jslaby@suse.com
- update to 20150119
* xdg-open: Improve performance of get_key function
* xdg-open: better fix for command injection vulnerability (bnc#913676)
* xdg-screensaver: Change screensaver_freedesktop's interpretation of GetActive
* xdg-mime: dereference symlinks when using mimetype or file
* xdg-open: command injection vulnerability
* xdg-screensaver should control X11's screensaver in xfce as fallback
-------------------------------------------------------------------
Sun Dec 28 08:43:50 UTC 2014 - simon@simotek.net
- add fix-enlightenment-support.patch
* xdg-su and xdg-terminal both detected enlightenment then did nothing
* xdg-su and xdg-terminal both use terminology rather then xterm now
-------------------------------------------------------------------
Thu Nov 27 15:41:10 UTC 2014 - jslaby@suse.com
- Update to 20141009:
* more of plasma5
- xdg-mime-generic-do-not-return-more-than-one-default.patch (bnc#906625)
- .spec cleanup
-------------------------------------------------------------------
Tue Sep 23 16:32:40 UTC 2014 - hrvoje.senjan@gmail.com
- Update to 20140922:
* Initial support for Plasma5
* XFCE .desktop file created for browser selection is broken
(fdo#56092)
* Unnecessary filtering file:// for pcmanfm (fdo#63153)
* fails if user sets a custom IFS environment variable
(fdo#81386)
* xdg-utils-common is broken, xdg-open uses bashism (fdo#83979)
* xdg-email: do not encode - character
-------------------------------------------------------------------
Mon Jun 30 14:54:19 UTC 2014 - fcrozat@suse.com
- Update to 20140630:
* manpage for xdg-su and xdg-terminal
* xdg-terminal: better support for screen and rxvt variants
* add xdg-settings tool
* improve KDE detection
* xdg-open: various fixes
* xdg-screensaver: use D-Bus api to lock GNOME screensaver
-------------------------------------------------------------------
Thu Jan 9 13:51:11 UTC 2014 - jslaby@suse.com
- update to 20140109
* xdg-mime: generic, handle filenames with colon (bnc#854777)
* xdg-desktop-menu: improperly check for vendor prefix ...
* xdg-screensaver: Support MATE desktop part 2
* xdg-desktop-menu: Unquoted file name (BR69399)
* xdg-open: Detect Enlightenment and make use of it
* xdg-open: be more paranoid in escaping
- xdg-open-be-more-paranoid-in-escaping.patch: remove
-------------------------------------------------------------------
Wed Oct 2 15:34:42 UTC 2013 - fcrozat@suse.com
- Requires which package, otherwise most xdg scripts won't work
properly.
-------------------------------------------------------------------
Mon May 20 11:57:03 UTC 2013 - jslaby@suse.com
- update to 20121008
* xdg-mime does not search mimeinfo.cache (BR31629)
- xdg-open-be-more-paranoid-in-escaping.patch: xdg-open: be more
paranoid in escaping (bnc#811959)
-------------------------------------------------------------------
Mon Sep 17 13:24:00 UTC 2012 - jslaby@suse.com
- update to snapshot from 20120916
* mate support added
* switch to local _service
* fix bad date in the file name
-------------------------------------------------------------------
Mon Aug 20 16:18:37 CEST 2012 - jslaby@suse.de
- update to snapshot from 20120809
* fix xdg-su for icewm (bnc#776202)
* remove xfce-su.diff (merged)
* few fixes (syntax errors in some cases and such)
* see ChangeLog for updates
-------------------------------------------------------------------
Fri Jun 29 00:27:04 CEST 2012 - jslaby@suse.de
- update to snapshot from 20120310
* many local patches are gone, since they were merged
* fixes many issues (see bnc#749612, bnc#703396, bnc#752977)
* see ChangeLog for updates
- clean the specfile a bit
-------------------------------------------------------------------
Mon May 21 10:16:02 UTC 2012 - vargusz@fazekas.hu
- Fix xdg-screensaver issues with Gnome 3 (bnc#559110)
-------------------------------------------------------------------
Sun Oct 23 23:12:02 UTC 2011 - pascal.bleser@opensuse.org
- add xdg-terminal
-------------------------------------------------------------------
Sat May 21 13:48:19 UTC 2011 - ctrippe@opensuse.org
- Fix xdg-open to probably parse the version for KDE4 (bnc#694543)
-------------------------------------------------------------------
Tue Jul 20 21:21:59 UTC 2010 - reddwarf@opensuse.org
- Fix screensaver handling in KDE4
-------------------------------------------------------------------
Sun Mar 28 17:43:15 UTC 2010 - andrea@opensuse.org
- added xdg-utils-1.0.2-bnc591714.patch to fix bnc#591714
-------------------------------------------------------------------
Thu Jan 14 18:01:21 UTC 2010 - andrea@opensuse.org
- added LXDE support
-------------------------------------------------------------------
Sun Aug 16 13:43:52 CEST 2009 - aj@suse.de
- Add some support for KDE4, taken from upstream CVS.
-------------------------------------------------------------------
Thu Feb 7 13:13:48 CET 2008 - dmueller@suse.de
- fix command injection (#bnc355061, CVE-2008-0386)
-------------------------------------------------------------------
Mon Oct 22 14:25:40 CEST 2007 - stbinner@suse.de
- update to 1.0.2:
* SVG icons are not supported but doc still mentioned SVG
* xdg-email can now be used without any e-mail address
* do not use mktemp without arguments, it breaks on systems with
certain older versions of mktemp
-------------------------------------------------------------------
Thu Sep 20 18:57:34 CEST 2007 - dmueller@suse.de
- fix xdg-su outside KDE/GNOME (#309164)
-------------------------------------------------------------------
Thu Aug 30 11:35:02 CEST 2007 - dmueller@suse.de
- fix xdg-su for XFCE (#304753)
-------------------------------------------------------------------
Tue May 22 14:25:00 CEST 2007 - dmueller@suse.de
- add xdg-su (#275937)
-------------------------------------------------------------------
Mon Nov 6 09:48:46 CET 2006 - dmueller@suse.de
- update to 1.0.1:
* Several shell syntax issues causing failures on Ubuntu 6.10
* Spurious output on stdout when running xdg-desktop-menu
* Non-ascii mailto URI handling of xdg-email on non-UTF8 locales
under KDE
-------------------------------------------------------------------
Fri Oct 27 18:04:35 CEST 2006 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Wed Sep 27 11:58:49 CEST 2006 - dmueller@suse.de
- update to 1.0rc1:
* for changes, see /usr/share/doc/packages/xdg-utils/ChangeLog
-------------------------------------------------------------------
Thu Jun 22 13:27:51 CEST 2006 - dmueller@suse.de
- Initial package (TP1)

4
xdg-utils.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: xdg-utils
version: 1.1.3+20210805
mtime: 1628200120
commit: 1a58bc28f6844898532daf9ee1bf6da7764955a9

103
xdg-utils.spec Normal file
View File

@ -0,0 +1,103 @@
#
# spec file for package xdg-utils
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: xdg-utils
Version: 1.1.3+20210805
Release: 0
Summary: Utilities to uniformly interface desktop environments
License: MIT
Group: System/GUI/Other
URL: https://www.freedesktop.org/wiki/Software/xdg-utils/
# http://portland.freedesktop.org/download/xdg-utils-%%{version}.tar.gz
Source: xdg-utils-%{version}.tar.xz
# PATCH-FEATURE-OPENSUSE install-some-more-scripts.diff jslaby@suse.cz
Patch0: install-some-more-scripts.diff
# PATCH-FIX-UPSTREAM 0001-Don-t-run-kreadconfig-if-KDE_SESSION_VERSION-is-5.patch
Patch1: 0001-Don-t-run-kreadconfig-if-KDE_SESSION_VERSION-is-5.patch
# PATCH-FIX-OPENSUSE support-deepin-desktop.patch hillwood@opensuse.org
Patch2: support-deepin-desktop.patch
Patch3: xdg-utils-egrep.patch
BuildRequires: make
# for xmlto to be able to generate text from html
BuildRequires: w3m
BuildRequires: xmlto
Requires: perl
Requires: perl-Net-DBus
Requires: perl-X11-Protocol
Requires: which
BuildArch: noarch
%description
The xdg-utils package is a set of simple scripts that provide basic
desktop integration functions for any Free Desktop, such as Linux.
They are intended to provide a set of de-facto standards.
This means that:
* Third party software developers can rely on these xdg-utils for
all of their simple integration needs.
* Developers of desktop environments can make sure that their
environments are well supported.
If a desktop developer wants to be certain that their
environment functions with all third party software, then can
simply make sure that these utilities work properly in their
environment.
%prep
%autosetup -p1
%build
%configure
make %{?_smp_mflags}
%install
%make_install
# Make call-browser executable, symlink (bsc#170316)
ln -snf xdg-open %{buildroot}%{_bindir}/call-browser
ln -snf xdg-open %{buildroot}%{_bindir}/desktop-launch
%files
%defattr(-,root,root)
%doc ChangeLog README TODO
%license LICENSE
%{_bindir}/call-browser
%{_bindir}/desktop-launch
%{_bindir}/xdg-desktop-icon
%{_bindir}/xdg-desktop-menu
%{_bindir}/xdg-email
%{_bindir}/xdg-icon-resource
%{_bindir}/xdg-mime
%{_bindir}/xdg-open
%{_bindir}/xdg-su
%{_bindir}/xdg-screensaver
%{_bindir}/xdg-settings
%{_bindir}/xdg-terminal
%{_mandir}/man1/xdg-desktop-icon.1%{?ext_man}
%{_mandir}/man1/xdg-desktop-menu.1%{?ext_man}
%{_mandir}/man1/xdg-email.1%{?ext_man}
%{_mandir}/man1/xdg-icon-resource.1%{?ext_man}
%{_mandir}/man1/xdg-mime.1%{?ext_man}
%{_mandir}/man1/xdg-open.1%{?ext_man}
%{_mandir}/man1/xdg-terminal.1%{?ext_man}
%{_mandir}/man1/xdg-screensaver.1%{?ext_man}
%{_mandir}/man1/xdg-settings.1%{?ext_man}
%{_mandir}/man1/xdg-su.1%{?ext_man}
%changelog