Skip to content

Add support for statically-linked runtime #602

@bmondream

Description

@bmondream

Pre-submit checks

  • I checked for similar issues beforehand, but could not find any, not even closed ones. I could not add my bug report to any existing issue.
  • I am going to take the time to to fill in all the required details. I know that the bug report will be dismissed otherwise.

Describe the bug

When I run Flameshot v11.0 AppImage via AppImageLauncher, it opens just fine. But Flameshot v12.0 and higher doesn't start (but starts just fine without using AppImageLauncher):

$ ./Flameshot-11.0.0.x86_64_22c672af70319f3838c53e2689f2711b.AppImage
Failed to get information about the latest version.  "Host api.github.com not found"
Failed to get information about the latest version.  "Host api.github.com not found"
QPainter::begin: Paint device returned engine == 0, type: 2
^C

$ ./Flameshot-12.0.rc1.x86_64_33327c82e1c11c0783945e9d575495ac.AppImage
Squashfs image uses (null) compression, this version supports only xz, zlib.
ERROR: appimage_shall_not_be_integrated : sqfs_open_image error: /home/user/Applications/Flameshot-12.0.rc1.x86_64_33327c82e1c11c0783945e9d575495ac.AppImage
AppImageLauncher error: appimage_shall_not_be_integrated() failed (returned -1) 
Squashfs image uses (null) compression, this version supports only xz, zlib.
ERROR: appimage_is_terminal_app : sqfs_open_image error: /home/user/Applications/Flameshot-12.0.rc1.x86_64_33327c82e1c11c0783945e9d575495ac.AppImage
AppImageLauncher error: appimage_is_terminal_app() failed (returned -1) 
execv error: No such file or directory

$ ./Flameshot-12.1.0.x86_64_10ab227368a704f2d66cded7a7aa8248.AppImage
Squashfs image uses (null) compression, this version supports only xz, zlib.
ERROR: appimage_shall_not_be_integrated : sqfs_open_image error: /home/user/Applications/Flameshot-12.1.0.x86_64_10ab227368a704f2d66cded7a7aa8248.AppImage
AppImageLauncher error: appimage_shall_not_be_integrated() failed (returned -1) 
Squashfs image uses (null) compression, this version supports only xz, zlib.
ERROR: appimage_is_terminal_app : sqfs_open_image error: /home/user/Applications/Flameshot-12.1.0.x86_64_10ab227368a704f2d66cded7a7aa8248.AppImage
AppImageLauncher error: appimage_is_terminal_app() failed (returned -1) 
execv error: No such file or directory

Expected behavior

Flameshot v12.0 AppImage and higher opens successfully.

Steps to reproduce the issue

  1. Download Flameshot AppImage either v12.0 or v12.1
  2. Run the AppImage (from the terminal to see the error log) while AppImageLauncher is running
  3. Click either Integrate and run or Run once
  4. This GUI error dialog is displayed:
    2023-10-07_00-01
    and the terminal shows the error messages I mentioned above

Screenshots

No response

Distribution and desktop environment

OS: Kubuntu 22.04.3 LTS x86_64
DE: Plasma 5.24.7

Installed AppImageLauncher version

AppImageLauncher version 2.2.0 (git commit d9d4c73), built on 2022-09-08 14:49:51 UTC

List of AppImages you tried

Flameshot v12.0 and v12.1 doesn't work, but Flameshot v11.0 does

Additional context

I'm not entirely sure whether this is a bug in AppImageLauncher. But again, it works without the launcher.
I looked through the code to find what's causing the appimage_shall_not_be_integrated error and it seems there must be X-AppImage-Integrate=false set somewhere, but I haven't found it in Flameshot's GitHub repository. In any case, can't this be overridden with a CLI argument to integrate it regardless of whether that option is set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds verificationDescription of the issue needs to be verified by the team

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions