openDsh / dash

Join us on Slack! https://join.slack.com/t/opendsh/shared_invite/zt-la398uly-a6eMH5ttEQhbtE6asVKx4Q
GNU General Public License v3.0
238 stars 69 forks source link

Cannot load 3rd party apps #142

Closed maskaz closed 4 months ago

maskaz commented 1 year ago

Issue

I had compile Dash on Buster 32bit, everything works perfect except 3rd party apps. Click on Load and Dash crash. Error message: ./dash: symbol lookup error: /home/pi/dash/lib/plugins/launcher/libapp.so: undefined symbol: XopenDisplay

Driver: kms

I wanna add path to app manually, to check if this will cause error to, but cannot find example, how it should be look in a /home/pi/.config/openDsh/dash.conf file

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 3 1GB USB Cable Waveshare 7" Screen v.1.EXAMPLE

Installation Method: Install.sh

robert5974 commented 1 year ago

What is the app?

maskaz commented 1 year ago

I cannot load any. For previous test builds, after click on Load window opens and i was able to choose, right now Dash only crash. I cannot find any info how to set app manually in a config file. Btw: im trying to create simple phone control app using PyQt5 and ofono (receive calls, end calls, etc) Maybe my job is pointless and there is a working solution?

jmccoy555 commented 1 year ago

Not running on Buster or maybe it was 32bit by any chance? I know I had some odd behaviour with the app loader. Bullseye 64bit did work.

rsjudka commented 1 year ago

yep this sounds related to #111

can you try using 64-bit bullseye and see if that works?

maskaz commented 1 year ago

Hi Yes it looks like totaly related, i now use 64bit Bullseye and can load apps, but not mine, i assume that it a problem with "complicated" PyQt apps.

rsjudka commented 1 year ago

yeah I remember someone built a similar pyqt app to yours to use in the app launcher (lost the slack history of it however since they took it all away 🥲)

I know they were able to get it to occasionally run, but it would often fail to embed into dash

haven't used pyqt but it's just a python file yes? is it marked as an executable so it can run on its own?

maskaz commented 1 year ago

It can be run on side, but that is a challenge and i'm bloody stubborn ;) I will try to figure it out how to make it work. First idea works... partially.

maskaz commented 1 year ago

I rewrited app and now works. If someone wanna try it is here: https://github.com/maskaz/CC_for_Dash Btw i'm able to load my app on 32bit Buster, problem resolved by incident with pulseaudio. After purge pulseaudio and pulseaudio-utils packages and install them again, some problems fixed (on full desktop lxpanel is loading again) and Dash loads external apps.