[GH-ISSUE #1748] google-play-music-desktop-player symlink: error while loading shared libraries: libnode.so #1185

Closed
opened 2026-05-05 07:37:07 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @semente on GitHub (Jan 23, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1748

google-play-music-desktop-player isn't working anymore when using the symlink to firejail as below:

ls -l /usr/local/bin/google-play-music-desktop-player
lrwxrwxrwx 1 root staff 17 dez 11 10:26 /usr/local/bin/google-play-music-desktop-player -> /usr/bin/firejail*

That cause the following error:

$ google-play-music-desktop-player
google-play-music-desktop-player
Reading profile /etc/firejail/google-play-music-desktop-player.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 8258, child pid 8259
Child process initialized in 70.32 ms
/usr/bin/google-play-music-desktop-player: error while loading shared libraries: libnode.so: cannot open shared object file: No such file or directory

Parent is shutting down, bye...

However, it works if you run it using the following forms:

# calling it from inside the directory containing the libnode.so file
$ cd /usr/share/google-play-music-desktop-player && google-play-music-desktop-player 

or

firejail --profile=/etc/firejail/google-play-music-desktop-player.profile google-play-music-desktop-player
Originally created by @semente on GitHub (Jan 23, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1748 google-play-music-desktop-player isn't working anymore when using the symlink to firejail as below: ``` ls -l /usr/local/bin/google-play-music-desktop-player lrwxrwxrwx 1 root staff 17 dez 11 10:26 /usr/local/bin/google-play-music-desktop-player -> /usr/bin/firejail* ``` That cause the following error: ``` $ google-play-music-desktop-player google-play-music-desktop-player Reading profile /etc/firejail/google-play-music-desktop-player.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 8258, child pid 8259 Child process initialized in 70.32 ms /usr/bin/google-play-music-desktop-player: error while loading shared libraries: libnode.so: cannot open shared object file: No such file or directory Parent is shutting down, bye... ``` However, it works if you run it using the following forms: ``` # calling it from inside the directory containing the libnode.so file $ cd /usr/share/google-play-music-desktop-player && google-play-music-desktop-player ``` or ``` firejail --profile=/etc/firejail/google-play-music-desktop-player.profile google-play-music-desktop-player ```
Author
Owner

@smitsohu commented on GitHub (Jan 28, 2018):

Hi @semente, can you please try firejail --ignore=noroot google-play-music-desktop-player and let us know if that works?

EDIT: If above command makes it work, could you also let us know if you are running with proprietary nvidia graphics drivers? See #1755.

<!-- gh-comment-id:361064490 --> @smitsohu commented on GitHub (Jan 28, 2018): Hi @semente, can you please try `firejail --ignore=noroot google-play-music-desktop-player` and let us know if that works? EDIT: If above command makes it work, could you also let us know if you are running with proprietary nvidia graphics drivers? See #1755.
Author
Owner

@semente commented on GitHub (Jan 29, 2018):

Hi @smitsohu! It works but it also works even when I run it using only firejail google-play-music-desktop-player. What is not working is when I try to run it using the symlink named /usr/local/bin/google-play-music-desktop-player that points to /usr/bin/firejail. For some reason it can't load the shared library libnode.so that is found on /usr/share/google-play-music-desktop-player/libnode.so.

But if I call the symlink from inside the directory /usr/share/google-play-music-desktop-player/ it works as expected. I guess this shared library is placed in the wrong path... so I'm wondering if there is any way to tell in a Firejail profile what is the working directory so it can run the software from inside the right directory, or if you or somebody know any other option that could solve this issue. Otherwise I think the best is create a wrapper script for it but other users may experience the same issue while trying this Firejail symlink mechanism.

<!-- gh-comment-id:361336683 --> @semente commented on GitHub (Jan 29, 2018): Hi @smitsohu! It works but it also works even when I run it using only `firejail google-play-music-desktop-player`. What is not working is when I try to run it using the symlink named `/usr/local/bin/google-play-music-desktop-player` that points to `/usr/bin/firejail`. For some reason it can't load the shared library `libnode.so` that is found on `/usr/share/google-play-music-desktop-player/libnode.so`. But if I call the symlink from inside the directory `/usr/share/google-play-music-desktop-player/` it works as expected. I guess this shared library is placed in the wrong path... so I'm wondering if there is any way to tell in a Firejail profile what is the working directory so it can run the software from inside the right directory, or if you or somebody know any other option that could solve this issue. Otherwise I think the best is create a wrapper script for it but other users may experience the same issue while trying this Firejail symlink mechanism.
Author
Owner

@smitsohu commented on GitHub (May 11, 2018):

@semente Could you please confirm the problem is still present in Firejail 0.9.54?

<!-- gh-comment-id:388354692 --> @smitsohu commented on GitHub (May 11, 2018): @semente Could you please confirm the problem is still present in Firejail 0.9.54?
Author
Owner

@semente commented on GitHub (May 14, 2018):

hi @smitsohu
I'm using Firejail package from Debian stretch-backports. It is currently on 0.9.52. I will wait it get an update, but if take too long I may compile this version to do the test. Thanks!

<!-- gh-comment-id:388915058 --> @semente commented on GitHub (May 14, 2018): hi @smitsohu I'm using Firejail package from Debian stretch-backports. It is currently on 0.9.52. I will wait it get an update, but if take too long I may compile this version to do the test. Thanks!
Author
Owner

@semente commented on GitHub (May 22, 2018):

I can confirm this problem is not present on Firejail 0.9.54, I'm closing the issue.

<!-- gh-comment-id:391013732 --> @semente commented on GitHub (May 22, 2018): I can confirm this problem is not present on Firejail 0.9.54, I'm closing the issue.
Author
Owner

@smitsohu commented on GitHub (May 24, 2018):

Awesome, thanks!

<!-- gh-comment-id:391797639 --> @smitsohu commented on GitHub (May 24, 2018): Awesome, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1185
No description provided.