LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk
User Name
Password
Zenwalk This forum is for the discussion of Zenwalk Linux.

Notices


Reply
  Search this Thread
Old 04-12-2022, 06:24 PM   #1
rehcla
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware
Posts: 18

Rep: Reputation: 4
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
 
Old 04-13-2022, 12:41 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by rehcla View Post
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.
 
Old 04-13-2022, 04:28 AM   #3
rehcla
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 4
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
 
Old 04-13-2022, 08:42 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
firefox expects to find pulseaudio or its fake called apulse.

start FF after installing apulse to see if sound appears like this

Code:
apulse firefox
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.
 
Old 04-13-2022, 04:42 PM   #5
rehcla
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 4
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.
 
Old 04-13-2022, 09:24 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
Old 04-13-2022, 11:55 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by rehcla View Post
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.
 
Old 04-14-2022, 02:22 PM   #8
rehcla
LQ Newbie
 
Registered: Oct 2005
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 4
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...
 
Old 04-20-2022, 09:19 AM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Flatpak 1.10.2 Security Update Fixes Vulnerability That Lets Flatpak Apps Access Host OS Files LXer Syndicated Linux News 0 03-11-2021 05:12 PM
LXer: Flatpak Linux App Sandboxing Format Now Lets You Kill Running Flatpak Instances LXer Syndicated Linux News 0 11-23-2018 01:21 AM
LXer: How To Get Flatpak Apps And Games Built With OpenGL To Work With Proprietary Nvidia Graphics Drivers LXer Syndicated Linux News 0 06-29-2018 06:12 PM
LXer: Flatpak Now Updates Apps from Both System and User Installations by Default LXer Syndicated Linux News 0 12-20-2017 01:27 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Zenwalk

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration