Skip to content
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

run appimages #145

Open
arcadematicas opened this issue Jan 16, 2025 · 4 comments
Open

run appimages #145

arcadematicas opened this issue Jan 16, 2025 · 4 comments

Comments

@arcadematicas
Copy link

run appimages

I'm sure this is a silly question I'm going to ask. But I have an emulator in appimage format, which works fine on my Linux system. I've created a script that launches the emulator and opens a specific game, the script works fine.
But if I want to create a flatimage with this, it doesn't even open the original appimage of the emulator, much less my script. It's all stored in the same folder as the lime3ds emulator.
I've tried giving permissions to the appimage from the script that I'm launching inside gameimage, and nothing. I can't get anything to run.
Is it possible to do what I want?
Thanks

@Blackfox-Thane
Copy link

Blackfox-Thane commented Jan 17, 2025

I've had this issue when running a doom source port appimage inside a flatimage, but i managed to fix the issue by using fim-perms add "usr/lib" "/lib" to the flatimage, then inputting --appimage-extract-and-run command while inside the launcher, hopefully this advice helps your issues.

@ruanformigoni
Copy link
Owner

ruanformigoni commented Jan 21, 2025

Hello, you can run appimages inside a flatimage using the portal. For example, fim_portal ./firefox.AppImage would execute the appimage in the host. However, this is not recommended because running on the host requires dependencies that might not be available or the appimage itself might not run due to glibc issues (or if the system uses musl).

You could follow @Blackfox-Thane advice, but I would recommend extracting with ./App.AppImage --appimage-extract and moving the squashfs-root directory to inside the flatimage with ./app.flatimage fim-exec cp ./squashfs-root /app. This will copy the appimage application directory to /app and you can run with ./app.flatimage fim-exec /app/AppRun. This will avoid extracting the app everytime you launch it.

Also @Blackfox-Thane, I think the command fim-perms add "usr/lib" "/lib" is incorrect, since the list of valid permissions is:

home
media
wayland
xorg
dbus_user
network

@Blackfox-Thane
Copy link

Blackfox-Thane commented Jan 21, 2025

Also @Blackfox-Thane, I think the command fim-perms add "usr/lib" "/lib" is incorrect, since the list of valid permissions is:

home
media
wayland
xorg
dbus_user
network

You're correct i ment to sayfim-bind addnot fim-perms add i mixed uo the commands 🤦, I apologize to the author of the post for the error.

@arcadematicas
Copy link
Author

Thanks for the ideas and help, but I'll almost give up, that's too complicated for me, for a simple emulator. LOL.
Thanks, if I feel like it I'll try some stuff, but I see it difficult for my current level of knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants