View previous topic :: View next topic |
Author |
Message |
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Mon Nov 25, 2024 5:29 pm Post subject: VLC appimage not launching |
|
|
have emerged: sudo emerge sys-fs/fuse:0 as related in forum:
sys-fs/fuse-2.9.9-r2::gentoo was built with the following:
Code: | USE="-examples -static-libs"
CFLAGS="-march=native -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=native -O2 -pipe -fno-strict-aliasing"
|
sys-fs/fuse-3.16.2::gentoo was built with the following:
Code: | USE="suid (-test)"
FEATURES="assume-digests xattr unmerge-orphans userpriv usersandbox usersync merge-sync news distlocks nodoc network-sandbox strict unknown-features-warn binpkg-logs config-protect-if-modified sfperms sandbox binpkg-dostrip pid-sandbox qa-unresolved-soname-deps unmerge-logs ebuild-locks fixlafiles parallel-fetch preserve-libs binpkg-multi-instance pkgdir-index-trusted multilib-strict binpkg-docompress buildpkg-live protect-owned ipc-sandbox candy"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
|
Code: | zcat /proc/config.gz | grep FUSE_FS
gzip: /proc/config.gz: No such file or directory |
using cli:
usr/bin/fusermount '/VLC_3.0.21-9.AppImage'
Code: | /usr/bin/fusermount: old style mounting not supported |
Code: | ls -l /usr/bin/fuse*
-rwxr-xr-x 1 root root 39904 Mar 8 2024 /usr/bin/fuser
-rws--x--x 1 root root 39008 Nov 24 19:40 /usr/bin/fusermount
-rws--x--x 1 root root 39504 Oct 13 2023 /usr/bin/fusermount3
|
Code: | $PATH
bash: /usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin: |
using commandline:
Code: | FUSERMOUNT_PROG=/usr/bin/fusermount './apps/VLC_3.0.21-9.AppImage' launches and plays from cli but not from mate desktop shortcut icon with same command line. |
Do I need to create a desktop entry in /usr/share/applications or modify the command line for a mate desktop shortcut icon to launch the appimage?
[Administrator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 445
|
Posted: Tue Nov 26, 2024 6:35 am Post subject: |
|
|
If there is something I am not understanding about your post, I apologize.
Do you need to use FUSERMOUNT_PROG= with that VLC appimage?
Is there a reason you need VLC as an appimage?
What do you need to accomplish that requires fusermount?
After being made executable (chmod +x) it simply runs with:
Code: | ./VLC_3.0.21-9.AppImage |
Or by clicking on the appimage file in the file browser, it should open and run.
In this way it runs just like native VLC and uses the .vlc config folder for the current user.
If you create desktop files, it is generally better to put them in ~/.local/share/applications for the single user. If you are trying to create them system-wide, then fine /usr/share/applications would work if you have to do that. |
|
Back to top |
|
|
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Tue Nov 26, 2024 8:47 pm Post subject: appimage does not execute when clicked |
|
|
Thank you rab0171610 for your reply.
Based upon your reply I would conclude that after making the appimage executable all that should be required is to click to launch.
However, attempting to launch the appimage after making it executable results either in no action when clicking it from caja fiile manager or alternatively when dragging it into terminal and hitting enter the following result is:
Code: | /usr/bin/fusermount: mount failed: Operation not permitted |
The issue is discussed here but without resolution:
https://forums.gentoo.org/viewtopic-t-1169835-start-0-postdays-0-postorder-asc-highlight-.html
The same appimage executes/launches in both Ubuntu and Debian but apparently there is an issue with fusermount and how it functions in Gentoo in relation to appimages.
What I am attempting to do is to click/launch and use the VLC appimage from Gentoo, as I have with both Ubuntu and Debian but do not understand the fusermount issue as it is not an issue with other distros.
I am using profile 23.0 with systemd. If you are using the same or similar could you point out what configuration changes are necessary to obtain reliable appimage execution, as apparently it is funcioning for your installation but I have not been able to find a solution in the forums. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 445
|
Posted: Tue Nov 26, 2024 9:40 pm Post subject: |
|
|
Yes, I have had to use this as a workaround for some appimages. I am just surprised that you are having to do that with this particular appimage because it works fine for me. I also have a systemd profile but Plasma:
Code: | [28] default/linux/amd64/23.0/desktop/plasma/systemd (stable) *
|
It likely would not affect other distros like Debian because they are all setup the same. Gentoo users have a lot of configurable options and use flags and each installation is unique. My desktop, KDE and the file browser is probably configured to handle the file automatically. In that case, did you try to create a .desktop file in ~/.local/share/applications for the appimage using:
Code: | FUSERMOUNT_PROG=/usr/bin/fusermount './apps/VLC_3.0.21-9.AppImage' |
As the exec line?
Maybe there are also some config options for Mate and Caja file browser with regards to setting up Fuse. That might be something to look into as well. |
|
Back to top |
|
|
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Wed Nov 27, 2024 11:01 am Post subject: appimage launcher |
|
|
Thank you rab0171610 for your reply.
With the mate desktop and caja It was possible to create a shorcut to call a script that specified the location of fusermount to launch the appimage.
For some reason(s) a direct shortcut did not work.
Thank you. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22886
|
Posted: Wed Nov 27, 2024 3:21 pm Post subject: |
|
|
What did you try for the direct shortcut, which did not work? What shortcut did you create that does work? Other users may want to use the same workaround, or we may be able to refine the process. |
|
Back to top |
|
|
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Thu Nov 28, 2024 4:04 pm Post subject: appimage support |
|
|
Thank you Hu for your reply.
This functioned for VLC appimage:
Create a directory under the user account and copied /usr/bin/fusermount to that directory and ran a sudo chmod u+s on the copied fusermount.
Although this may not be wise for system executables within /usr/bin, the directory of the modified fusermount is not in the normal $PATH to be called for any system function.
Then created a simple script (supply your own path):
Code: | /bin/bash
FUSERMOUNT_PROG=/path/to/fusermount '/path/to/appimage/VLC_3.0.21-9.AppImage' |
Note that the appimage is present on another partition which is shared with other distributions installed on the same hard drive. This enables the other distros to have access to the installed location.
Then simply create a shortcut that calls the script.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
However, this method did not function with GIMP and plugins appimage.
The gimp appimage was copied to the common partition referenced above, but would not launch using a shortcut with associated script.
It was possible to create an alias in .bashrc to launch GIMP as follows:
Code: | alias gimp='sudo FUSERMOUNT_PROG=/path/to/fusermount /path/to/GIMP_AppImage-git-2.10.25-20210610-withplugins-x86_64.AppImage' |
Again, supply your own paths.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
It appears the sticking point is calling fusermount in a non-administrator capacity, much like the prior issue with attempting to invoke hddtemp (befoe systemd drivetemp) via bash script without administrator authority.
The terminal output when attempting to launch an appimage invoking fusermount from /usr/bin is "Operation not permitted".
Complicating matters, using sudo with a cli invoked VLC appimage generates a message that VLC is not to be run in that elevated mode.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
It would appear that one solution would be to provide a package or framework that functions apart from /usr/bin/fusemount, but can be called in a non-administrator capacity, or a package or framework that enables simple click to run functionality.
Since linux appimages should contain all the components necessary to launch and function in all linux distros, it would be a distinct advantage to have a standardized method for calling appimages located on any supported filesystem and utilizing any supported desktop/profile installed in Gentoo.
Please follow up if further explanation of the above is needed. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 445
|
Posted: Fri Nov 29, 2024 7:07 am Post subject: |
|
|
FWIW, I downloaded that GIMP appimage with plugins and it launched by just clicking on it in Dolphin file browser and also directly with:
Code: | ./GIMP_AppImage-git-2.10.25-20210610-withplugins-x86_64.AppImage |
You really shouldn't have to invoke sudo to use the Gimp appimage. The error message that appears when
you tried to run VLC with elevated privileges is expected and correct.
I can only assume it is a permissions issue or other system configuration issue. I also am assuming since you read the wiki and knew to install
fuse slot 0 and can run fusermount via a bash script that you have support for the fuse file system in your kernel config.
Code: | lsmod | grep fuse
Module Size Used by
fuse 204800 3 |
|
|
Back to top |
|
|
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Sun Dec 01, 2024 12:50 am Post subject: appimage |
|
|
Thank you rab0171610, for your follow-up reply.
Recompiled kernel per Gentoo forums indicating fuse should be module instead of compiling into the kernel.
Code: | lsmod | grep fuse
fuse 188416 3 |
Shows fuse loaded but uncertain as to why the size differed from the example in your message.
Still no click to launch with mate file manager. |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 445
|
Posted: Sun Dec 01, 2024 4:26 am Post subject: |
|
|
I don't think the module size difference has any relevance. Is sys-apps/xdg-desktop-portal-xapp installed on your machine?
Do other executable files launch when you click on them in the file browser? You can browse to /usr/bin and find a GUI
program there that you have permissions to run as your user. You can also browse to /opt if you have programs there such as
Firefox or Thunderbird or Google Chrome, etc.. Click on the executable to see if it opens and runs. This would at least determine if it is a problem
with opening executable files in general in Caja file brower/mate or possibly a fuse or permissions or configuration issue. |
|
Back to top |
|
|
contactopublico n00b
Joined: 22 Dec 2023 Posts: 37
|
Posted: Mon Dec 02, 2024 11:35 pm Post subject: appimage lfails to launch |
|
|
Thank you rab0171610 for your reply.
Your suggestion pulled in a number of packages, but no change in the failure to launch appimages clicking from caja file manager.
Code: | sudo emerge --ask sys-apps/xdg-desktop-portal-xapp |
These are the packages that would be merged, in order:
Calculating dependencies ... done!
Dependency resolution took 7.91 s (backtrack: 0/20).
[ebuild N ] acct-group/pipewire-0-r2
[ebuild N ] app-eselect/eselect-lua-4-r1
[ebuild N ] gnome-base/libgnomekbd-3.28.1 USE="introspection"
[ebuild N ] dev-lang/lua-5.4.6 USE="deprecated readline"
[ebuild N ] x11-libs/xapp-2.8.5 USE="introspection vala -gtk-doc -mate -xfce" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13"
[ebuild N ] media-video/pipewire-1.2.7 USE="X dbus extra ffmpeg gstreamer readline ssl systemd v4l -bluetooth -doc -echo-cancel (-elogind) -flatpak -gsettings -ieee1394 -jack-client -jack-sdk -liblc3 -lv2 -man -modemmanager -pipewire-alsa -roc (-selinux) -sound-server (-system-service) -test -zeroconf"
[ebuild N ] media-video/wireplumber-0.5.6-r1 USE="systemd (-elogind) (-system-service) -test" LUA_SINGLE_TARGET="lua5-4 -lua5-3"
[ebuild N ] sys-apps/xdg-desktop-portal-1.18.4 USE="seccomp systemd -flatpak -geolocation -test"
[ebuild N ] sys-apps/xdg-desktop-portal-gtk-1.14.1 USE="X -wayland"
[ebuild N ] sys-apps/xdg-desktop-portal-xapp-1.0.9
What is the actual executable required to launch an appimage in your desktop file manager? |
|
Back to top |
|
|
|