Skip to content

Bug Report: AppRun inside AppImage is missing permissions #347

@Benji377

Description

@Benji377

I am trying to upload the AppImage packaged with cargo-packager to the AppImage store. They have a test pipeline that runs on every submission and makes sure that the AppImage is correct.

My AppImage passes all tests, but then fails to execute with the error:

/bin/bash: line 1: /run/firejail/appimage/AppRun: Permission denied

After inspecting the AppImage by mounting it and opening it:

./tooka_1.0.2_x86_64.AppImage --appimage-mount
cd /tmp/.mount_tooka

I saw that the AppRun directory was missing the executable permissions:

> ls
AppRun  tooka.desktop  tooka.png  tooka.svg  usr
> ls -l
total 31
-rwxr--r-- 1 root root 31552 11 giu 19.53 AppRun
-rw-r--r-- 1 root root   216 11 giu 19.53 tooka.desktop
lrwxrwxrwx 1 root root    46 11 giu 19.53 tooka.png -> usr/share/icons/hicolor/500x500/apps/tooka.png
lrwxrwxrwx 1 root root    47 11 giu 19.53 tooka.svg -> usr/share/icons/hicolor/scalable/apps/tooka.svg
drwxr-xr-x 6 root root     0 11 giu 19.53 usr
!w /tmp/.mount_tooka_e7qH04 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions