Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adafuit-pitft.py fails when using Dietpi linux distro #321

Open
Aesop7 opened this issue Aug 4, 2024 · 0 comments
Open

adafuit-pitft.py fails when using Dietpi linux distro #321

Aesop7 opened this issue Aug 4, 2024 · 0 comments
Labels

Comments

@Aesop7
Copy link

Aesop7 commented Aug 4, 2024

Script Command

sudo -E env PATH=$PATH python3 adafruit-pitft.py --display=35r --rotation=90 --install-type=fbcp

Operating System

32bit DietPi v9.6.1

Hardware

Raspberry Pi Model B Rev 2

Behavior

Errors about "is_wayland" Currently installing, can edit this with precise errors afterward.

Description

After doing some digging I discovered that the issue is with this line: output = shell.run_command("loginctl show-session $(loginctl | grep $(whoami) | awk '{print $1}') -p Type | grep wayland", suppress_message=True, return_output=True, run_as_user=username).strip()

It appears that DietPi doesn't include loginctl. I'm able to bypass the check by manually editing the script to hard code it to "x11".

It would be great if I was able to bypass detection, maybe by passing an argument when running the script e.g. sudo -E env PATH=$PATH python3 adafruit-pitft.py --display=35r --display-manager=x11 --rotation=90 --install-type=fbcp

Cheers!

Additional information

No response

@Aesop7 Aesop7 added the bug label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant