Hi,
so this is something that has been driving me nuts. In particular because i need to download a bunch of excel files on a regular basis and it's impossible to open them from the download folder. I've tried before to figure out what goes wrong, but I have had no luck so far.
The situation is as follows: I run 25.04.
Whenever I try to open a file from the download menu in Chrome or Firefox, it's opened in Ark as a zip-file. I would like for them to open in libreoffice (obviously).
Thinks I've checked:
But I'm not understanding how this all ties together. Apparently the file is correctly identified as libreoffice, at least inside the flatpak, but then something goes wrong during the handover to the 'normal' OS.
If I had to guess, I'd say xdg-desktop-portal didn't install successfully. But I've tried reinstalling it and it made no difference. Is there anything else I could try to get this to work?
Thanks!
so this is something that has been driving me nuts. In particular because i need to download a bunch of excel files on a regular basis and it's impossible to open them from the download folder. I've tried before to figure out what goes wrong, but I have had no luck so far.
The situation is as follows: I run 25.04.
Whenever I try to open a file from the download menu in Chrome or Firefox, it's opened in Ark as a zip-file. I would like for them to open in libreoffice (obviously).
Thinks I've checked:
- excel files open fine when I open them from Dolphin (so my current work around is, download, open dolphin, go to download folder, double-click)
- other file types do show the kde-file-dialogue and let me choose the appropriate application (or simply open in my preferred application) when opened from inside the snap/flatpack
- mime type seems to be correct:
Code:
file --mime-type test.xlsx test.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- I have opened a shell inside a flatpack package and run the same command as above:
Code:
flatpak run --command=sh org.kde.dolphin file --mime-type test.xlsx test.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- I have opened a shell inside the snap package and tried to run the same command as above but dependencies are missing. xdg-open opens the file in Ark
- I have checked that I have xdg-portal running:
Code:systemctl --user list-units --type=service | grep xdg-desktop-portal plasma-xdg-desktop-portal-kde.service loaded active running Xdg Desktop Portal For KDE xdg-desktop-portal-gtk.service loaded active running Portal service (GTK/GNOME implementation) xdg-desktop-portal.service loaded active running Portal service
- - I have checked the xdg-portal logs on start up:
Code:
Okt 15 14:54:46 right systemd[2605]: xdg-desktop-portal.service: Consumed 1.236s CPU time, 81.6M memory peak. Okt 15 14:54:46 right systemd[2605]: Starting xdg-desktop-portal.service - Portal service... Okt 15 14:54:46 right xdg-desktop-por[219750]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
But I'm not understanding how this all ties together. Apparently the file is correctly identified as libreoffice, at least inside the flatpak, but then something goes wrong during the handover to the 'normal' OS.
If I had to guess, I'd say xdg-desktop-portal didn't install successfully. But I've tried reinstalling it and it made no difference. Is there anything else I could try to get this to work?
Thanks!
Comment