-
Notifications
You must be signed in to change notification settings - Fork 770
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
Thumbnails do not show up on Gnome anymore #1612
Comments
Did you install one of the prior versions manually using |
No, I have not done that. |
Please check out this comment anyway and check if those files exist: |
I have installed 1.0.16 (from git branch with CMAKE_INSTALL_PREFIX=/usr/local
rm -f ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps/xournalpp.svg
rm -f ${CMAKE_INSTALL_PREFIX}/share/mime/packages/xournalpp.xml
rm -f ${CMAKE_INSTALL_PREFIX}/share/applications/xournalpp.desktop
rm -f ${CMAKE_INSTALL_PREFIX}/share/thumbnailers/xournalpp.thumbnailer
rm -f ${CMAKE_INSTALL_PREFIX}/share/metainfo/xournalpp.appdata.xml |
@Rmano you have to run: ./cmake/postinst configure |
Done; no error. I removed the thumbnail cache ( |
I checked and all those files exist. |
As mentioned in the comment. Please delete the files. |
Sorry, that was not very clear from my side: |
Looks like thumbnail generation is failing. Here's a file I found in
Edit: note that |
This appears to be a bug in Nautilus. I cleared the thumbnail cache and opened the containing folder with Nemo; the thumbnail displayed correctly. |
Hmm, I will check, but I do not think that this is the problem. I have the workaround described in the linked post installed since more than one year, and nevertheless the problem should have been fixed upstream (I'll try to dig out the links later). Mind you, it could still be a Nautilus bug, but I don't think is this one. |
This does not directly address your issue, but I thought I would mention it in case it is related. I found that when I export my Xournal++ file to .pdf, Nautilus does not show the thumbnail (just shows the general .pdf icon), but when I use the print menu and choose to print to a .pdf file, then Nautilus shows the thumbnail of that .pdf properly. |
I believe I've discovered the source of the issue. Nautilus uses bwrap to isolate thumbnailers, which also means that only the thumbnailer application and the file to thumbnail exist in the view of the thumbnailer. The thumbnail cannot be generated because the thumbnailer cannot find the xournalpp icon to overlay onto the thumbnail. I've got it working here: https://github.com/robinp7720/xournalpp/blob/fixthumbnailer/src/xoj-preview-extractor/xournalpp-thumbnailer.cpp by removing the code to overlay the xournalpp icon. If the removal of the icon is ok, I'll create a pull request. It would probably be possible to check within the thumbnailer if it's running within a bwrap environment and include the icon if it can. I'm however personally not a fan of the overlayed icon. |
Awesome, thanks for troubleshooting the issue. I dug some more into this issue and found the root cause: the image loading code that I wrote is a hack that uses The thumbnailer uses GTK because I wanted to avoid a |
In PR #2252 I removed gtk_init will this either fix this issue or make it worse? |
#2252 is unrelated to this issue, which only affects the thumbnailer. |
Can someone try #2738? The thumbnails should at least show up--not sure if the icon will show up anymore though. |
I can confirm that #2738 fixes the issue on nautilus, it even shows the xournallpp icon! However, in some cases it seems that the thumbnail isn't being rendered. This was however an issue before #2738 too with file managers that don't use bwrap. I'll send an offending file if desired. |
That's great. I think I'll leave the other issue to be fixed some other time. |
Under Ubuntu 20.10 I only got the thumbnailer working after wrapping |
@moorepants Does this problem also occur if you use the |
I don't know. I'll have to switch and see. I was using the snap in 20.04 to have the latest version and the thumbnails worked then. |
The thumbnails work as expected with the deb package included with Ubuntu 22.04. |
Affects versions :
Description
Since 1.0.14, Thumbnails for .xopp files do not show up in the file manager (Nautilus) anymore
To Reproduce
Expected behavior
The .xopp file has a thumbnail that shows the contents of the first page of the file.
Actual behavior
It uses the generic icon of Xournalpp instead of thumbnails.
The text was updated successfully, but these errors were encountered: