Skip to content

Add plaintext and directory mimetypes to Linux desktop entry#311053

Open
Tech-Tac wants to merge 2 commits intomicrosoft:mainfrom
Tech-Tac:patch-1
Open

Add plaintext and directory mimetypes to Linux desktop entry#311053
Tech-Tac wants to merge 2 commits intomicrosoft:mainfrom
Tech-Tac:patch-1

Conversation

@Tech-Tac
Copy link
Copy Markdown

This allows users to open files and folders with VSCode directly from their file manager, matching the behavior of other text editing applications on Linux.

Fixes #15741

Tech-Tac and others added 2 commits April 17, 2026 19:45
This allows users to open files and folders with VSCode directly from their file manager, matching the behavior of other text editing applications on Linux.
Copy link
Copy Markdown
Collaborator

@rzhao271 rzhao271 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely needs to be tested across multiple distros, see #209510

@Tech-Tac
Copy link
Copy Markdown
Author

As long as we are following the standard [1, 2], we should be fine.

@rzhao271
Copy link
Copy Markdown
Collaborator

I believe we were following those standards before, and then #114425 happened.
The issue is we want to register VS Code as an available application for those types but not accidentally become the default application for those types. Your second link seems to suggest a way to register a type as the default, which is the opposite of what we want. The ideal solution would be a post-installation command that establishes our application as not the default for some types.

@Tech-Tac
Copy link
Copy Markdown
Author

There is not much we can do in any case, this sounds like bad behavior in the mentioned environment and nothing we can directly influence. We are simply following the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow code to open directories in nautilus file manager

2 participants