antoniofaccioli / libreoffice-appimage

This script create a appimage version of LibreOffice.
Mozilla Public License 2.0
25 stars 14 forks source link

icon libreoffice is missing from dock ubuntu 18.04 #11

Open Lvaskz opened 6 years ago

Lvaskz commented 6 years ago

Hi, I am using ubuntu 18.04 and the icon libreoffice full.appimage from the dock is missing every time i run it.

64 bits ubuntu 18.04, gnome shell

antoniofaccioli commented 6 years ago

For the moment it is not provided directly, look into other thread of appimage github. For example here: https://github.com/AppImage/AppImageKit/issues/346

probonopd commented 6 years ago

I think @Lvaskz is talking about the icon on the dock. How do you launch LibreOffice? By just double clicking the AppImage or from the menu, using the optional appimaged daemon?

This is the Qt code that does it - I am sure it can be done without Qt as well:

# Construct the absolute path to the icon from the relative path
QFileInfo fi(app.applicationDirPath() + "/../share/pixmaps/qtquickapp.png");
# Set the window icon
QGuiApplication::setWindowIcon(QIcon(fi.absoluteFilePath()));
Lvaskz commented 6 years ago

I am not using appimaged, double click on the appimage only

probonopd commented 6 years ago

Then LibreOffice needs to set the window icon (in its source code).

Lvaskz commented 5 years ago

To update this issue a bit, I installed appimagelauncher and effectively the libreoffice icon can be seen in the applications menu and the ubuntu dock. Until then everything, well, the problem is when I select calc, writer or any other, the icon of the applications is missing I started to dive in .local / share / icons / etc etc etc and I could see that the icons are downloaded there, but for some reason, they are not loaded. To complicate the matter a little bit more, I installed libreoffice of flatpak, and I left the flatpak application closed and I returned to open libreimage of appimage and the calc, writter correct icon appeared. I uninstalled libreoffice flatpak and reopened libreoffice. appimage and disappeared the images of calc, writter, etc. From the above I infer that the libreoffice appimage is registering the flatpak icons and not those that are loaded in .local / share / icons. For some reason when libreoffice flatpak is present, libreoffice appimage recognizes the path of the icons, but if I uninstall flatpak, the icons of libreoffice appimages get lost again. This is a pretty strange behavior, maybe there is some error in the recognition of the routes-path of the icons.