-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Libreoffice configured as default editor for text/plain #8385
Comments
Debian does not define default application, so the choice is a bit random (in practice - lexicographical). For text/plain, it hits LibreOffice, which is very unfriendly for text/plain. Choose something that is not libreoffice instead. Fedora does define gedit as default editor, but xdg-open doesn't handle mimeapps.list, it only looks for defaults.list file. Add a symlink to fix this. Fixes QubesOS/qubes-issues#8385
Debian does not define default application, so the choice is a bit random (in practice - lexicographical). For text/plain, it hits LibreOffice, which is very unfriendly for text/plain. Choose something that is not libreoffice instead. Fedora does define gedit as default editor, but xdg-open doesn't handle mimeapps.list, it only looks for defaults.list file. Add a symlink to fix this. Re-calculate the choice on package update too, if the currently selected editor doesn't exist anymore (happens for example when org.gnome.gedit is replaced with org.gnome.TextEditor). Fixes QubesOS/qubes-issues#8385
someone else than me on irc: foo.txt opens in gedit in my debian 11 at least $ xdg-mime query default text/plain; (unset XDG_CURRENT_DESKTOP; xdg-mime query default text/plain) |
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
|
How to file a helpful issue
Qubes OS release
R4.2, possibly R4.1 too
Brief summary
Plain text files are opened in LibreOffice Writer, which is an overkill for the simple file format. Simpler editors are installed (depending on the template and its flavor - gnome-text-editor, gedit, mousepad), but they are not set as default for text/plain.
Steps to reproduce
xdg-mime query default text/plain
Or simply open a .txt file from a file manager (or using xdg-open).
Expected behavior
File opens in a simple text editor, default one for given distribution.
In gnome template flavor (the default one): gnome-text-editor or gedit
In xfce template flavor: mousepad
Actual behavior
File opens in LibreOffice Writer.
Additional context
This issue needs some explanation regarding https://www.qubes-os.org/faq/#what-is-qubes-attitude-toward-changing-guest-distros.
For Debian template, the consensus based on IRC discussion is that Debian does not define default applications for file types at all, and it is a long standing upstream issue. Even properly tracking it upstream is problematic, as the file configuring which applications open what (
/usr/share/applications/mimeapps.list
) doesn't exist, so the (hypothetical) issue cannot be assigned to any package (admittedly, this is rather lame excuse...). The result is that default application is chosen more or less at random (in practice depends on lexicographic sorting applications...) from the installed applications.For Fedora template, the intended default is configured (mimeapps.list does exist and points at
org.gnome.gedit.desktop
), but for some reason, it isn't respected byxdg-mime
in qubes template.This is similar issue to #4195 or #3148
The text was updated successfully, but these errors were encountered: