-
Notifications
You must be signed in to change notification settings - Fork 13
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
Cannot open images after recent commits #11
Comments
It works for me, both with 2.1.0 and 2.2.0. You can extract your AppImage with |
I don't see any difference. I'm using Ubuntu 20.04. I tried to reproduce it on different OS, but for now after updating kernel I don't have access to VirtualBox. Opening folders in default file manager works fine(this is done by double click with Right mouse button) |
Ok, I'm able to reproduce your issue on a Ubuntu VM. I need to investigate deeper... |
Just for the record, I just discovered some Gtk+ related stuff in https://docs.appimage.org/packaging-guide/manual.html#bundling-gtk-libraries. Doubt it helps. Perhaps it should be updated or removed. |
I also found, that natively installed app allows to open multiple images at once(by double click of left mouse button) but packed with appimage allows to open only one image and entire app freeze until I close ImageMagick app(tested only with 2.1). In appimage forum I got info that this is not problem with Appimage because problem persists when app is unpacked with |
The the link between
Full BT: debug.txt As you can see in BT, Setting @TheAssassin Any idea to force |
Can you provide a link to the broken AppImage so I can check it out? |
Links are in first post. |
Maybe GDB does not respect RPATH, so forget the BT. @qarmin Can you test if the issue is related to a problem with shared libraries? Try to replace the following line in
By this one:
|
After change I'm able to open image in ImageMagick(setting any other default app like eye of gnome, still opens ImageMagick) |
Changing default application has been complicated for me too. @qarmin can you check the default application for JPEG files, please? xdg-mime query default image/jpeg |
|
Then try to change it to ImageMagick: xdg-mime default display-im6.q16.desktop image/jpeg |
Now jpg opens in image magick and png still shows nothing |
Maybe you need to change default file association for PNG files too. |
For me, it is definitively a bug with The problem is our plugin exports environment variables to make binary inside AppImage to work (e.g. czkawka_gui in this case). Maybe we should "whitelist" some applications (like EOG), i.e. unset these environments variables in a custom wrapper. |
Some programs crash due to environment variables override Fix #11
Some programs crash due to environment variables override Fix #11
Following up the question in #12.
Indeed, when tools are linked statically (that includes Rust, Go, ...), a simple A tool like Czkawka could however detect whether it's running in an AppImage and sanitize the environment itself. We could provide such a functionality by providing the same sanitation run in the exec wrapper in a simple tool (could even be a bash script) through which the actual tool is launched by the Gtk+ application. The application path/name would be passed as Unfortunately, it's not easy to work around Gtk+'s limitations here. Qt makes it a lot easier, as almost all settings can also be read from a file called Setting environment variables is always a workaround. It works fine for many applications, but breaks the moment you want to call external tools. Have you considered just shipping eog, though? Do you launch eog explicitly or is it just the default tool for images (e.g., opened with |
Czkawka uses crate https://crates.io/crates/open which just execute native os tool to open things. |
@qarmin I think it is easier for you to handle this then on application level rather than expecting miracles from the plugin. I think if we document this properly (e.g., in the README), you should be able to fix the issues as an application author. The cheapest way to implement the workaround is to just I'm not too much into Rust to see whether there's a more elegant solution for this than I think there's even a need for a separate crate that you can call to do this.... |
After upgrading version of GTK plugin(from c008df6 to 447f23f), I lost ability to open images.
Steps to reproduce:
In 2.1.0 version, image should open in ImageMagick app, but 2.2.0 version doesn't show anything(maybe is a way to open it in default image app?).
I doesn't change logic between versions, but 2.2 version should prints when
xdg-open
fails to open apphttps://github.com/qarmin/czkawka/releases/download/2.2.0/linux_czkawka_gui.AppImage
https://github.com/qarmin/czkawka/releases/download/2.1.0/linux_czkawka_gui.AppImage
The text was updated successfully, but these errors were encountered: