I am having some permission issues with libreoffice that I just don't have the technical provess to understand.
ISSUE
when I run localc directly from terminal, it goes into a loop: the program crashes immediatly while opening a file, then tries again, asking me if I want to restore the file it just crashed trying to open. It keeps on doing this.
loffice /some/file.csv
When I open the file with sudo, files opens fine
sudo loffice /some/file.csv
interestingly enough it also opens fine if I open it from a filebrowser like pcmanfm. I also have a "rofi -dmenu" that I use to open a list of scripts and some of these open csv-files - this also works fine.
BACKGROUND
I'm not sure when this issue started to happen - it's been a busy few weeks - but I think it might having to do with me changning default programs for opening different filetypes. This is how I did it:
First I copied the mimeapps.list to my Dropbox, and then symlinked that to the position in the config folder like this:
ln -s ~/Dropbox/dotfiles/mimeapps.list /home/my_user/.config/mimeapps.list
After changing some defaults (for some reason the e-reader Calibre was default for opening stuff so I changed that so that my editor of choice ) I did:
sudo -A update-desktop-database
I don't know if this messed up something, but it seems likely.
I've been using the last couple of hours trying to understand what's going on, listing different files related to mimetypes on the system in order to see if there is a problem with permissions, but I can't figure it out. Help would be appreciated.
I'm using Lubuntu 20.04 with i3wm.
PS
this is the output from term when opening it
(soffice:25195): Gtk-WARNING **: 13:53:58.639: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/gnome/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/gnome/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Application Error