dimon2242

Untitled

Dec 16th, 2017
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.  
  2.  
  3. #Same issue on arch.
  4. #As a workaround you can create this systemd unit :
  5.  
  6. [Unit]
  7. Description=System resume actions
  8. After=suspend.target
  9.  
  10. [Service]
  11. Environment=XAUTHORITY=/home/user_name/.Xauthority
  12. Environment=DISPLAY=:0.0
  13. Type=simple
  14. ExecStart=/usr/bin/bash -c "killall nm-applet && sudo -E -u user_name /usr/bin/nm-applet"
  15.  
  16. [Install]
  17. WantedBy=suspend.target
Advertisement
Add Comment
Please, Sign In to add comment