Zenwalk This forum is for the discussion of Zenwalk Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-12-2022, 06:24 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware
Posts: 18
Rep:
|
Flatpak apps have no sound and other errors
Hi all!
I did install some apps via flatpak and discovered that firefox has no sound, "Thonny Python IDE" complains about :
Code:
ERROR: ld.so: object '/usr/lib64/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored
and clicking on links in the telegram app wont open the link with the default browser, copy/paste from flatpaks is possible.
Does someone know how to solve this?
Its a default zenwalk 15.
System software (like chromium) works fine!
Thx
|
|
|
04-13-2022, 12:41 AM
|
#2
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by rehcla
I did install some apps via flatpak and discovered that firefox has no sound, "Thonny Python IDE" complains about :
Code:
ERROR: ld.so: object '/usr/lib64/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored
and clicking on links in the telegram app wont open the link with the default browser, copy/paste from flatpaks is possible.
Does someone know how to solve this?
Its a default zenwalk 15.
System software (like chromium) works fine!
|
These are typical problems that arise from software containerisation.
So the first question to ask is if you really need to install and run that software as a flatpak.
|
|
|
04-13-2022, 04:28 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware
Posts: 18
Original Poster
Rep:
|
Hello ondoho,
That is absolutely correct.
Never the less flatpaks are supported by zenwalk linux out of the box, so this problem should not be there in the first pace and must be solved <--> reported...
Working around the problem is what I would have done in the past
greetings
|
|
|
04-13-2022, 08:42 AM
|
#4
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
firefox expects to find pulseaudio or its fake called apulse.
start FF after installing apulse to see if sound appears like this
2) I do not know anything about thonny but pretending it needs a working preload, because whoever built that container did not test it correctly IMHO. There is not info on whether that is truly the full error to start thonny so read this please
https://www.baeldung.com/linux/ld_preload-trick-what-is
so your work a round will start with
Code:
LD_PRELOAD=/usr/lib64/libgtk3-nocsd.so.0 ldd <some-exe>
3) On a debian system I can see
https://packages.debian.org/bullseye...nocsd/filelist
with an exe of /usr/bin/gtk3-nocsd YMMV
Last edited by aus9; 04-13-2022 at 08:45 AM.
|
|
|
04-13-2022, 04:42 PM
|
#5
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware
Posts: 18
Original Poster
Rep:
|
I have to admit that the firefox vs chromium was kind of a sensitive privacy issue for me and I installed firefox via netpkg and deleted the flatpak before.
But the telegram app has audio capability too and that is what I used to test the change suggested by you.
A apulse package was not available via netpkg, nor alien slackbuilds, nor conraid slackbuilds! So I did compile the one from ponce slackbuilds current and tested the flatpak with:
Code:
apulse flatpak run org.telegram.desktop
ERROR: ld.so: object '/usr/lib64/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
QApplication: invalid style override 'Adwaita-Dark' passed, ignoring it.
Available styles: Windows, Fusion
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
No change on the audio side.
Last edited by rehcla; 04-13-2022 at 05:25 PM.
|
|
|
04-13-2022, 09:24 PM
|
#6
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
fix your perms first please
get root powers then
Code:
chmod 0700 /run/user/1000
reboot....then you need to preload first then try your flatpak command,
but I do not use flatpak so may be wrong
flatpak is available on debian if interested (not a flatpak)
https://packages.debian.org/bullseye/telegram-desktop
|
|
|
04-13-2022, 11:55 PM
|
#7
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
Quote:
Originally Posted by rehcla
That is absolutely correct.
Never the less flatpaks are supported by zenwalk linux out of the box, so this problem should not be there in the first pace and must be solved <--> reported...
Working around the problem is what I would have done in the past 
|
First of all you cite several problems, not just one.
And some of those are arguably features, not bugs - it's the point of sandboxing to isolate apps from the rest of the machine, so complaining that it does what it's designed to is ... not constructive.
Also, the way I understand how flatpaks work, you should be complaining to the providers of the flatpak, not zenwalk. Their whole point is to be distro-independent.
|
|
|
04-14-2022, 02:22 PM
|
#8
|
LQ Newbie
Registered: Oct 2005
Distribution: Slackware
Posts: 18
Original Poster
Rep:
|
Hello aus9,
Code:
Here is the result of your suggested approach:
apulse flatpak run org.telegram.desktop
ERROR: ld.so: object '/usr/lib64/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
QApplication: invalid style override 'Adwaita-Dark' passed, ignoring it.
Available styles: Windows, Fusion
QStandardPaths: wrong permissions on runtime directory /run/user/1000, 0755 instead of 0700
[ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
I did try to fix permissions for /run/user/1000, but the error does reappear (also with "chown -R" )!
No change so far...
|
|
|
04-20-2022, 09:19 AM
|
#9
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
that is not my suggested approach.....I wanted you to preload first and then attempt to launch your flatpak.
I thought that firefox was not a flatpak. so I was responding to FF first as it should be easy to download and run from unpack.
so try
Code:
LD_PRELOAD=/usr/lib64/libgtk3-nocsd.so.0 ldd /usr/bin/gtk3-nocsd
apulse flatpak run org.telegram.desktop
I prefer you forget about flatpak.....run telegram as a native app please
|
|
|
All times are GMT -5. The time now is 01:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|