[systemd-devel] xmodmap gives: No protocol specified

Lennart Poettering mzerqung at 0pointer.de
Fri Nov 4 12:43:25 UTC 2016


On Fri, 04.11.16 12:47, Cecil Westerhof (cldwesterhof at gmail.com) wrote:

> I have a script I want to run as a service which uses:
>     xmodmap -pk
> I have to define the DISPLAY, so I use:
>     export DISPLAY=:0.0
> 
> But this gives:
>     export DISPLAY=:0.0
>     xmodmap:  unable to open display ':0.0'
> 
> When I try the same with at, I do not have this problem.
> 
> What is happening here and how can I resolve this?

This is the systemd mailing list, we don't really have much knowledge
about X11, sorry.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list