cdown / clipmenu

Clipboard management using dmenu
MIT License
1.14k stars 91 forks source link

Run clipmenud after the display manager is started #134

Closed nenad closed 4 years ago

nenad commented 4 years ago

In cases of starting the display manager manually from tty, the DISPLAY variable is not yet set and clipmenud is crashing.

cdown commented 4 years ago

Hi! This doesn't appear to be a standard unit, so you're probably going to have to add it as a drop-in.

% systemctl cat display-manager.service
No files found for display-manager.service.
% systemctl --user cat display-manager.service 
No files found for display-manager.service.

Another way to provide $DISPLAY if X is not started yet is with systemctl --user import-environment.

nenad commented 4 years ago

You are right. Turns out this didn't even fix it on my machine as I'm starting sway by executing sway from the tty and not through systemd. I'll close the PR, thanks for the input!