this post was submitted on 19 Oct 2024
14 points (88.9% liked)

Linux

8083 readers
28 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 1 year ago
MODERATORS
 

So this is not a question about how to do this. I know how to do this. I also know that (at least under GNOME) it is neither easy nor intuitive. It involves manually editing several different text files to define MIME types and associating an application with that MIME type. My question is: is there an easy to use GUI tool to do this. I don’t think there is. Associating a file type to open with a specific app is easy, trivial even, to do on MacOS or Windows. Why is this seemingly simple task so hard to do in GNOME?

top 9 comments
sorted by: hot top controversial new old
[–] 299792458ms@lemmy.zip 13 points 3 weeks ago* (last edited 3 weeks ago) (3 children)

It is actually very easy, on Gnome you need to open nautilus(Files) then right click the corresponding file type, click "Open with..." and select what app you want it to open with and if you would like to make it the default. Which funny enough is done the same way in MacOS. You just overlooked it.


PS:This method automatically writes changes to ~/.config/mimeapps.list

PS2: Usually you can find answers to this questions in the documentation with a quick online search.

[–] masterofn001@lemmy.ca 6 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

This is why I like xfce's default apps setting.

You go to settings, go to default apps.

You can change every mime type to any app you want.

The list is there.

[–] rustydomino@lemmy.world 5 points 3 weeks ago* (last edited 3 weeks ago)

Sounds like I need to try xfce. But again - I shouldn’t need to change my desktop environment to do something fundamental that a GUI desktop environment should handle easily. No? Otherwise my desktop environment is just eye candy for xterms.

[–] catloaf@lemm.ee 3 points 3 weeks ago

Same in Windows, too.

[–] rustydomino@lemmy.world 3 points 3 weeks ago (1 children)

Nope. This doesn’t work when you have binaries that are not recognized by GNOME. You need to make a .desktop file for your binary first that define MIME types for that app. If it is a MIME type that is not recognized by the freedesktop.org database, you also have to create an XML file that defines your specific file type based on file extension or other characteristics. Then, you need to use Nautilus to set the default app. It’s a pain in the ass if it’s not a standard app from the Ubuntu App Store and a standard MIME type.

[–] 299792458ms@lemmy.zip 2 points 3 weeks ago

maybe this can help

[–] Auster@lemm.ee 8 points 3 weeks ago (1 children)

Unsure if it's a viable option for you, but using KDE's Dolphin file browser, it's rather straight forward for me to set default applications through GUI. Also maybe worth noting I use Mint Xfce, even though Dolphin is a QT program ported.

[–] TheGrandNagus@lemmy.world 3 points 3 weeks ago (1 children)

It's exactly the same in Gnome.

Right click > open with (with the option of setting the selected app as the default)

[–] rustydomino@lemmy.world 0 points 3 weeks ago

See comment above from me. This doesn’t work unless you already have .desktop files and MIME types already configured for your app.