cdown / clipmenu

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

clipmenud.service: too eager to start on some machine #101

Closed randomizedthinking closed 5 years ago

randomizedthinking commented 5 years ago

I am using clipmenu for some time and it works out greatly.

One item I notice is that the clipmenud.service might be too eager to start during system start-up time on some machines. Ideally, it should wait till xorg starts, yet on one of my machine, the system always tries to start clipmenud service very early: it slows down the system startup quite a bit.

Would be great to have it up only the xserver is up. I did some research yet didn't find a nice solution.

cdown commented 5 years ago

Yes, it depends on xorg, but there's no standardised target for this (graphical.target is related, but happens at the wrong time during initialisation). You need to set it up as appropriate in your environment if you are using enable instead of manually starting services from your WM or xinitrc.

cdown commented 5 years ago

Ah, this is made worse by RestartSec=0. I'm changing this to be 500ms, the same as the default CM_SLEEP.

cdown commented 5 years ago

I think this should resolve everything that's resolvable, but let me know if you still have questions. Thanks!