s243a

/usr/sbin/openbox-session

Apr 23rd, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if test -n "$1"; then
  4.     echo "Syntax: openbox-session"
  5.     echo
  6.     echo "See the openbox-session(1) manpage for help."
  7.   exit
  8. fi
  9.  
  10. # Clean up after GDM
  11. xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
  12.       -remove _NET_DESKTOP_NAMES \
  13.       -remove _NET_CURRENT_DESKTOP 2> /dev/null
  14.  
  15. # Set up the environment
  16. A="/etc/xdg/openbox/environment"
  17. test -r $A && . $A
  18. A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment"
  19. test -r $A && . $A
  20.  
  21. # Run Openbox, and have it run the autostart stuff
  22. exec /usr/bin/openbox --startup "/usr/lib/openbox/openbox-autostart OPENBOX" "$@"
Add Comment
Please, Sign In to add comment