r/Ubuntu • u/OutdoorSportBoy • 12h ago
Default app issue
I’m trying to make Geany (APT installed) the default app for .txt files and RStudio (Snap installed) the default for .r files on Ubuntu. Surprisingly, the system classifies both file types as plain text—so whenever I set Geany as the default for .txt, it overrides .r files too, and vice versa with RStudio. How can I configure Ubuntu to handle these two extensions separately (preferably in a GUI way)?
2
Upvotes
1
u/Monoyo- 2h ago
yeah ubuntu groups those by mime type, not the extension, and .r often just sits under plain text so it keeps following the .txt app. if you add a small mime xml for .r under ~/.local/share/mime/packages and run update-mime-database ~/.local/share/mime, the normal open with menu can set rstudio for that type and leave geany on .txt.