LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Zenwalk (https://www.linuxquestions.org/questions/zenwalk-75/)
-   -   Flatpak apps have no sound and other errors (https://www.linuxquestions.org/questions/zenwalk-75/flatpak-apps-have-no-sound-and-other-errors-4175710729/)

rehcla 04-12-2022 06:24 PM

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

ondoho 04-13-2022 12:41 AM

Quote:

Originally Posted by rehcla (Post 6345702)
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.

rehcla 04-13-2022 04:28 AM

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

aus9 04-13-2022 08:42 AM

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

rehcla 04-13-2022 04:42 PM

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.

aus9 04-13-2022 09:24 PM

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

ondoho 04-13-2022 11:55 PM

Quote:

Originally Posted by rehcla (Post 6345782)
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.

rehcla 04-14-2022 02:22 PM

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...

aus9 04-20-2022 09:19 AM

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 04:26 AM.