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

Raspi Buster (lite) 3rd party app load issue #111

Open 7ensation opened 2 years ago

7ensation commented 2 years ago

Description of problem:

This software is awesome thanks for all your hard work! I am having an issue with just the lite version of Buster on a pi 4 2GB. I have 2 boot drives one running the GUI version of Buster and the issue is not repeatable on the desktop version. But I have a small pyqt5 gui application to control some relays in my car and when I use the app launcher on the buster lite build to run the .py script, my GUI comes up but the screen is off center and my GUI persists in front of everything even if I click on the other tabs such as camera or android auto. If I close the app the Dash GUI returns to normal. Again it works perfectly on the Desktop version of Buster. Id like to use the lite version though so I can just load my custom splash screen and boot right into the Dash app without seeing the raspi desktop. TIA!

Hardware

Device Connection Method Screen Mobile Device Android Auto Version
Raspberry Pi 4 4GB USB Cable Official Raspberry 7" Screen Galaxy s21 ultra

Installation Method: Install.sh

maskaz commented 1 year ago

With which app? This one: https://github.com/maskaz/CallControl_dev? Fully works, one thing, because i had a problem with dbus (bluetooth stopped working), solution for both was runing openbox-session (insted of 'openbox'). If you want to test other app, send link.

7ensation commented 1 year ago

no the slc-gui python app linked above in the comments. python pyqt5 apps load but they are not confined to the designated window in the app launcher. they stick to the top left of the screen and block Dash.

maskaz commented 1 year ago

Works. Images are not scale properly and i did mask adafruit_dht because even when installed python cannot load it. 20230513_163549

7ensation commented 1 year ago

nice what version of raspbian and is that an older version of dash?

7ensation commented 1 year ago

SLC_app.zip

you can try this app it should have better scaling

maskaz commented 1 year ago

Same result (images looks bad) Raspbian GNU/Linux 10 (buster) (lite) Dash version, i think newest, build few days ago Are you sure obenbox is running? What happen when you run any x app, will borders show? 20230513_192855

maskaz commented 1 year ago

Add: I run app few times, and sometimes images are looking good, so problem is with stretching. I thought the problem was with QtCore.Qt.FramelessWindowHint, but after commenting, the application does not load at all.

7ensation commented 1 year ago

20230513_141144

Wooooo got it! Running open box and getting that in place before launching dash provides the window management needed to position everything correctly inside the main app. Thats probably the reason why it works on desktop versions because the dependencies exist for the graphical positioning somewhere already if I had to guess.

Thanks for your input maskaz!

maskaz commented 1 year ago

Anytime!

About apps, here Dash devs can only answer. I think the same, Dash is grabbing window from window-manager and show it "inside" of Dash.

rsjudka commented 1 year ago

I think the same, Dash is grabbing window from window-manager and show it "inside" of Dash.

that's exactly it 🙂 qt allows you to create a windows container for an application long as you know the window id, which we get from querying x (and hoping it tells us about it)