contour icon indicating copy to clipboard operation
contour copied to clipboard

Other apps try to open folders in Contour rather than the file manager

Open jobukkit opened this issue 1 year ago • 3 comments

Contour Terminal version

0.4.2-master-dbb8f274

Installer source

AUR (tried both stable and git)

Operating System

CachyOS (Arch Linux) with GNOME

Architecture

x86-64

Steps to reproduce

When Contour is installed, other apps try to open folders in Contour, rather than Nautilus. Removing Contour fixes the issue.

Expected Behavior

Having Contour installed shouldn't interfere with the file manager.

Actual Behavior

Contour opens and interprets the folder path as a shell to use. For example, when trying to browse the files of a Steam game:

Failed to spawn /home/myuser/.local/share/Steam/steamapps/common/Unrailed
Trying login shell: "/usr/bin/nu"

jobukkit avatar Jan 25 '24 15:01 jobukkit

Hey @jobukkit, many thanks for this report. This is really weird. I'm mainly using KDE. Would you mind trying out another desktop or window manager, just for the test to see if this is a GNOME-specific behaviour or not? Many thanks.

christianparpart avatar Jan 27 '24 22:01 christianparpart

I have a feeling that this cause by some keywords from our .desktop file https://github.com/contour-terminal/contour/blob/f3c3334aa5c861348c5bbe8ffe572c872eef2e08/src/contour/contour.desktop#L12

and i think that @jobukkit you can directly test if this will resolve this issue by modifiing contour.desktop file on your system

Yaraslaut avatar Feb 01 '24 15:02 Yaraslaut

Seems like the line above that is the culprit.

https://github.com/contour-terminal/contour/blob/f3c3334aa5c861348c5bbe8ffe572c872eef2e08/src/contour/contour.desktop#L11

> xdg-mime query default inode/directory
org.contourterminal.Contour.desktop

xdg-mime default org.gnome.Nautilus.desktop inode/directory fixes the problem.

Maybe something other than the .desktop file sets it too.

jobukkit avatar Feb 01 '24 17:02 jobukkit