summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-11-13Fix xdg-settings support for default-web-browser for Plasma 5.19+198-xdg-desktop-menu-is-not-doing-it-right-or-the-documentation-lacksMéven Car1-3/+15
2020-02-20fixed #166: xdg-open dose not search correctly in directories with spaces in ↵Andrea Tarocchi2-2/+2
the name
2019-04-13xdg-mime: return correct exit code for GNOMEMartin Puppe1-0/+2
If the desktop environment was GNOME and none of the commands for detecting the MIME type of a file was available, xdg-mime used to return exit code 0 even though it failed. The man page says it should return exit code 3. This commit fixes the issue. I have considered returning exit code 4 instead since that is what would be returned if info_kde() or info_generic() fail to find a tool for MIME type detection. But I have decided to implement the behavior as specified in the man page. The exit code of an if construct is 0 if no condition tested true [^1]. The author of the original code probably was not aware of this. [^1]: https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html#Conditional-Constructs
2019-04-01support digits in uri scheme regexCameron Fieber1-1/+1
As per RFC 2396[1] a valid URI scheme may contain a digit: scheme = alpha *( alpha | digit | + | - | . ) [1]: https://www.ietf.org/rfc/rfc2396.txt
2019-04-01Merge branch 'simotek/xdg-utils-fix-xdg-open-typo'Rex Dieter1-2/+2
2019-04-01Merge branch 'simotek/xdg-utils-feature-xdg-su-enhancements'Rex Dieter2-4/+10
2019-04-01Merge branch 'simotek/xdg-utils-fix-xscreensaver-sanitize'Rex Dieter1-0/+5
2019-04-01Merge branch 'simotek/xdg-utils-term-fixes'Rex Dieter1-13/+25
2019-04-01Enable cinnamon screensaver for xdg aware desktop environments (eg lxqt)mvdlinde1-0/+2
2019-03-27xdg-open: fix comment typoReuben Thomas1-2/+2
Also bump Rex Dieter’s copyright date Signed-off-by: Simon Lees <sflees@suse.de>
2019-03-27xdg-su: fix some easy TODOsReuben Thomas2-4/+10
Although xdg-su is not currently shipped, fix some trivial documentation TODOs. Signed-off-by: Simon Lees <sflees@suse.de>
2019-03-27xdg-screensaver: Sanitise window name before sending it over the busIain Lane1-0/+5
libdbus expects string arguments to be valid UTF-8. If they are not, then it aborts, which causes our backgrounded command to terminate abnormally. Signed-off-by: Simon Lees <sflees@suse.de>
2019-03-19Fixes -x argument, which is the default for {gnome,mate}-terminalsor.alexei@meowr.ru1-11/+23
Signed-off-by: Simon Lees <sflees@suse.de>
2019-03-19Fix a bug when xdg-terminal needs gsettings to get the default terminalRonan Arraes Jardim Chagas1-2/+2
xdg-terminal is not working when it needs gsettings to obtain the default terminal. Thus, xdg-terminal cannot be used in MATE, Cinnamon or GNOME. This issue was already reported in: https://bugs.freedesktop.org/show_bug.cgi?id=93231 Thus, this patch provides a temporary workaround until upstream fixes it. Link: https://bugs.freedesktop.org/show_bug.cgi?id=93231 Signed-off-by: Simon Lees <sflees@suse.de>
2019-01-11test-lib.sh: run: eat xdg-open's exit codeRichard Tollerton1-1/+1
It was observed that t-xdg-open.sh exits after only a fraction of the tests have been run, e.g. ASSERTION FAILED: expected command to be run: gio open http://www.freedesktop.org/ ASSERTION FAILED: expected command to be run: gio open http://www.freedesktop.org/ - opens a URL with gvfs-open if gio open is missing in GNOME 3, GNOME 2, and Cinnamon gio: http://www.freedesktop.org/: Operation not supported make: *** [Makefile:21: t-xdg-open.sh] Error 4 Given that some tests are failing on my machine (likely because of the peculiarities of my archlinux install), the root cause is `set -e`. The nonzero exit code returned by xdg-open gets returned by run(), which is also returned by e.g. test_open_url(), which causes the script to exit immediately. All test passes/failures at present are being defined by explicit assertions, not by exit codes, and it seems at least plausible that some xdg-open calls are meant to fail. So rather than report the nonzero error code, just ignore it, and trust that the assertions determine the results. Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
2019-01-10xdg-open: handle file://localhost/Richard Tollerton2-1/+8
Presently, file://localhost/ URLs are totally unsupported: is_file_url_or_path correctly considers them files, but they are undecoded and hence check_input_file fails. While the standardization surrounding file: URLs is admittedly vague [1], AFAIK, *all* literature, and other implementations, unambiguously demonstrate that file://localhost/ should be equivalent to file:///: - The "File URI specification" explicitly linked to from the xdg-utils homepage [2] - RFC 8089 section 1.1 - RFC 1738 section 3.10 - Observed implementations of Windows `start`, macOS `open`, Firefox, Chrome, IE Fix this by adding some simple carve-outs for file://localhost specifically in file_url_to_path. [1] https://lists.freedesktop.org/archives/xdg/2004-November/003711.html [2] https://edeproject.org/spec/file-uri-spec.txt Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
2018-09-13Restore matching of older deepin namesRex Dieter1-1/+1
Reverts a small part of prior commit 56991bc165577f011f9ad7ca721c5a5134710e33
2018-09-11xdg-email: Support for DeepinAlberto Salvia Novella4-7/+12
2018-05-24xdg-open: better pcmanfm check (BR106636,BR106161)Rex Dieter2-1/+3
2018-05-13open for post 1.1.3 developmentRex Dieter2-1/+4
2018-05-10bump version, prep for 1.1.3 releasev1.1.3Rex Dieter1-1/+1
2018-05-10xdg-open: use pcmanfm only if it is available (BR106161)Rex Dieter2-1/+3
Please enter the commit message for your changes. Lines starting
2018-05-10+changelogRex Dieter1-0/+3
2018-05-10Add Deepin Desktop Environment support.石博文2-0/+23
In DDE, a tools called `dde-open` is used to open preferred app. DDE use `Deepin` as a desktop name currently, but in some older version, it was `DEEPIN` or `deepin` dde-open is provide by dde-api, see [1]. [1]: https://cr.deepin.io/c/dde/dde-api/+/33751
2018-05-09changelog for prior commitRex Dieter1-0/+3
2018-05-09Avoid argument injection vulnerability in open_envvar()Gabriel Corona1-1/+9
2018-05-02xdg-settings: check_browser is broken under kde when just the binary is ↵Rex Dieter2-6/+24
specified (BR106343) patch courtesy of Simon Lees (SUSE) <sflees@suse.de> BUG: 106343
2018-02-27Changelog for prior commitRex Dieter1-1/+4
2018-02-27xdg-open: Fixes LXQt behaviorLuís Pereira1-1/+10
Commit 6387086e4938d568c2bab185632f60e1619b3f68 introduced LXQt support. In xdg-open it assumed that LXQt and LXDE are the same. They aren't. LXQt does not have pcmanfm, it has pcmanfm-qt. LXQt doesn't want to rely on pcmamfm-qt to handle it: LXQt is very modular and can be deployed without pcmanfm-qt. open_generic() works for LXQt but it depends on mimeopen and mimetype. In the future we will want, for sure, to drop those dependencies. That's the reason for the existence of open_lxqt().
2017-12-18xdg-mime awk script syntax error (BR104298)Rex Dieter2-2/+5
2017-11-29Spelling fixes (BR103255)Rex Dieter10-16/+16
Credit to Ville Skyttä <ville.skytta@iki.fi>
2017-11-29xdg-mime.1: Add missing periodVille Skyttä1-1/+1
2017-11-29Fix tests for 1f8e58d51e6fb3f50f59ed2d8265f2f346ac68e6Nicholas Guriev2-0/+6
2017-05-08init 1.1.3 ChangeLog sectionRex Dieter1-1/+3
2017-05-08bump version: 1.1.2+Rex Dieter1-1/+1
2017-05-08correct vesion (1.1.2)v1.1.2Rex Dieter1-1/+1
2017-05-08adjust version for release/tagRex Dieter1-1/+1
2017-02-28xdg-screensaver: Restore previous X11 screensaver timeout (BR#98509)Rex Dieter2-3/+17
2017-02-28Add better support for Enlightenment and LXQt (BR98561)Rex Dieter7-3/+96
2017-02-28common: implement vendor dirs in desktop_file_to_binary (BR44163)Rex Dieter1-9/+27
2017-02-28xdg-mime: fails on encountering a list for x-scheme-handler (BR44163)Rex Dieter2-2/+12
2017-02-28changelog for prior commitRex Dieter1-0/+3
2017-02-28xdg-open: Add "chromium" to fallback browsersJosh Triplett1-1/+1
The list of fallback browsers includes "chromium-browser"; however, current installations of Chromium install the browser as "chromium". (Some Chromium packages used to install "chromium-browser" due to binary name conflicts, subsequently resolved.)
2017-02-06xdg-open: fix copy-paste typoCosimo Cecchi1-1/+1
This was introduced in 0d6eebb27c562e8644ccf616ebdbddf82d0d2dd8 and prevents the script from running altogether. https://bugs.freedesktop.org/show_bug.cgi?id=99699
2016-12-12+changelog for prior commitRex Dieter1-0/+3
2016-12-12Add gio tool supportOndrej Holy5-14/+47
gvfs- utils were deprecated in favour of new gio tool. Prefer gio tool in recent GNOME 3 and Cinnamon over gvfs- utils.
2016-11-23changelog for prior 2 commitsRex Dieter1-0/+3
2016-11-23xdg-email: add flatpak supportMatt Watson1-0/+19
When we are in the flatpak sandbox, use the flatpak portal to open mailto uris.
2016-11-23xdg-open: add flatpak supportMatt Watson2-0/+23
When we are in the flatpak sandbox, use the flatpak portal to open uris.
2016-06-10xdg-open: prefer open_generic_xdg_x_scheme_handler over open_envvar(BR96472)Rex Dieter2-4/+7