Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jobukkit opened this issue Jan 25, 2024 · 3 comments · Fixed by #1480
Closed

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

jobukkit opened this issue Jan 25, 2024 · 3 comments · Fixed by #1480
Labels
bug Something isn't working platform: linux topics that directly address Linux platform (any distro)

Comments

@jobukkit
Copy link

jobukkit commented Jan 25, 2024

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 jobukkit added the bug Something isn't working label Jan 25, 2024
@christianparpart
Copy link
Member

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 christianparpart added the platform: linux topics that directly address Linux platform (any distro) label Jan 27, 2024
@Yaraslaut
Copy link
Member

I have a feeling that this cause by some keywords from our .desktop file

Keywords=File;Manager;Browser;Explorer;Launcher;Vi;Vim;Python

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

@jobukkit
Copy link
Author

jobukkit commented Feb 1, 2024

Seems like the line above that is the culprit.

MimeType=inode/directory;

> 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: linux topics that directly address Linux platform (any distro)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants