Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VLC appimage not launching
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
contactopublico
n00b
n00b


Joined: 22 Dec 2023
Posts: 35

PostPosted: Mon Nov 25, 2024 5:29 pm    Post subject: VLC appimage not launching Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 434

PostPosted: Tue Nov 26, 2024 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message
contactopublico
n00b
n00b


Joined: 22 Dec 2023
Posts: 35

PostPosted: Tue Nov 26, 2024 8:47 pm    Post subject: appimage does not execute when clicked Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 434

PostPosted: Tue Nov 26, 2024 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
contactopublico
n00b
n00b


Joined: 22 Dec 2023
Posts: 35

PostPosted: Wed Nov 27, 2024 11:01 am    Post subject: appimage launcher Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22746

PostPosted: Wed Nov 27, 2024 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
contactopublico
n00b
n00b


Joined: 22 Dec 2023
Posts: 35

PostPosted: Thu Nov 28, 2024 4:04 pm    Post subject: appimage support Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 434

PostPosted: Fri Nov 29, 2024 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum