Skip to content

Commit 2392ed1

Browse files
committed
Add check for 'unity:unity7:ubuntu' in XDG_CURRENT_DESKTOP
1 parent 8e32fd8 commit 2392ed1

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
Changelog for Show in File Manager
22
==================================
33

4-
1.1.1 (2022-10-31)
4+
1.1.2 (2021-12-27)
5+
------------------
6+
7+
- Add check for "unity:unity7:ubuntu" in environment variable
8+
XDG_CURRENT_DESKTOP.
9+
See https://github.com/damonlynch/rapid-photo-downloader/issues/46
10+
11+
1.1.1 (2021-10-31)
512
------------------
613
- Add `allow_conversion` switch to `show_in_file_manager()`. Set to False
714
if passing non-standard URIs.
815
- Recognize non-standard URI prefix 'camera:/', used by KDE.
9-
- Added function linux_desktop_humanize(), to make Linux desktop environment
16+
- Added function `linux_desktop_humanize()`, to make Linux desktop environment
1017
variable name values human friendly.
1118

12-
1.1.0 (2022-10-29)
19+
1.1.0 (2021-10-29)
1320
------------------
1421
- On WSL2, use a Linux file manager (if set) for WSL paths, and Windows
1522
Explorer for Windows paths. If no Linux file manager is installed, use

src/showinfm/system/linux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def linux_desktop() -> LinuxDesktop:
765765
else:
766766
raise Exception("The value for XDG_CURRENT_DESKTOP is not set")
767767

768-
if env == "unity:unity7":
768+
if env in ("unity:unity7", "unity:unity7:ubuntu"):
769769
env = "unity"
770770
elif env == "x-cinnamon":
771771
env = "cinnamon"

0 commit comments

Comments
 (0)