diff --git a/auto-rotate.service b/auto-rotate.service index d8cfe98..4efc4af 100644 --- a/auto-rotate.service +++ b/auto-rotate.service @@ -11,6 +11,7 @@ BindsTo=graphical-session.target [Service] Environment=DISPLAY=:0 +ExecStartPre=/bin/sleep 10 ExecStart=/usr/local/bin/auto-rotate Restart=on-failure SuccessExitStatus=3 4