You are not logged in.
Pages: 1
Hi,
for some misbegotten reason, and not fully appreciating it's subterfuges, I installed Chrome and not Chromium on my desktop (I needed a security flaw they both have in common).
I soon noticed that Chrome had installed itself as the (unwanted) default for opening MIME type application/pdf, but fixed that using xfce4-settings-manager | System | Default Applications | Other, and set the default to Atril. (I'm not sure there was any default before that, but the settings manager lacks an option to set it to 'none'.)
I thought that was that, then I realised Thunar had also been infected, offering to open a boggling array of file types with Google Chrome, and (infuriatingly) hijacking the top position in the right click menu.
How can I remove/edit all of these default application settings, and how can I lock them so malware like Chrome isn't able to mess with them?
I'm running Debian Bookworm + XFCE.
Cheers,
bitrat
Last edited by bitrat (2023-08-17 06:49:07)
Offline
How can I remove/edit all of these default application settings, and how can I lock them so malware like Chrome isn't able to mess with them?
Copy Chrome's .desktop file from /usr/share/applications to ~/.local/share/applications (create the directory if it doesn't exist) and then edit this newly copied file and delete the "MimeType=" line.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
bitrat wrote:How can I remove/edit all of these default application settings, and how can I lock them so malware like Chrome isn't able to mess with them?
Copy Chrome's .desktop file from /usr/share/applications to ~/.local/share/applications (create the directory if it doesn't exist) and then edit this newly copied file and delete the "MimeType=" line.
Cool thanks!
I'm gradually getting to know the .desktop mechanisms, but solutions like this, addressing specific problems but shedding light on the higher level file organisation, are a huge help.
Thanks again.
[UPDATE]
Interestingly, this strategy worked for application/pdf mime type, but not for image/jpeg. Chrome remains the default application at the top of the right click menu, even after I moved org.xfce.ristretto.desktop to .local/share/applications (although it already has MimeType=image/png;image/gif;image/jpeg;image/bmp;image/x-pixmap;image/tiff;image/svg+xml;image/x-xpixmap). What I'm not understanding is how does an application gain priority in this scheme, where any number might register the same file types.
I intend to prevent installers from making these unwanted changes in future and may try using dpkg-divert, although I'd prefer not to be forced into it.
Last edited by bitrat (2023-08-18 12:02:09)
Offline
Hello,
What I'm not understanding is how does an application gain priority in this scheme, where any number might register the same file types.
In Thunar, did you try right click on the jpeg file --> Open with --> Set Default Application... ?
EndeavourOS
Xfce+gtk3-classic (no CSD)+Picom
Offline
Hello,
bitrat wrote:What I'm not understanding is how does an application gain priority in this scheme, where any number might register the same file types.
In Thunar, did you try right click on the jpeg file --> Open with --> Set Default Application... ?
Have now. Too easy, thank you!
I'm still interested in how and where this is implemented.
Offline
Pages: 1
[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 536.11 KiB (Peak: 536.95 KiB) ]