Skip to content

Commit dcba033

Browse files
authored
Update synchronization_setup.py
1 parent ba1d1ae commit dcba033

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/synchronization_setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ def set_up_auto_mount(mount_type):
4848
prefix = re.sub(r'gio mount |%2F', '/', prefix_old).replace('//', '').strip() # Replace 2%F with /
4949
else:
5050
prefix = ""
51-
fm = "nautilus" if not self.environment == "Cinnamon" else "nemo"
51+
52+
if os.getenv("XDG_CURRENT_DESKTOP") in ["X-Cinnamon", "Budgie:GNOME"]:
53+
fm = "nemo"
54+
else:
55+
fm = "nautilus"
5256
cmd = (
5357
f"output=$(secret-tool lookup object Nextcloud) && "
5458
f"output=\"Positive signal\" || "

0 commit comments

Comments
 (0)