On Tue, Jun 15, 2021 at 09:21:10PM +0200, BerndSchmittNews wrote: > Hello. > > I used to use xhost-command and su -l ... -c ... to run programs as a > different user in debian10. In debian11 I get an error about having no > DISPLAY env variable specified. > > Does xhost work different now?
No. It's the su, dropping the DISPLAY environment variable. Try adding the option `--whitelist-environment=DISPLAY to your su command (hint: you can add more variables to that whitelist, comma separated). HTH, cheers - t
signature.asc
Description: Digital signature