Advertisement
Guest User

Untitled

a guest
Jul 6th, 2014
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Compatibily layer that redirects gnome-control-center calls to switchboard
  4. # Copyright: 2013 Sergey "Shnatsel" Davidoff <sergey@elementaryos.org>
  5. # License: GNU GPL 2.0+
  6.  
  7. # parse command-line options
  8. while true; do
  9. if [ "${1#-}" = "$1" ] && [ -n "$1" ]; then
  10.     # not prefixed with "-", should be the panel name
  11.     requested_plug="$1"
  12. elif [ "$1" = '-v' ] || [ "$1" = '--verbose' ] || [ "$1" = '-o' ] || [ "$1" = '--overview' ]; then
  13.     : # do nothing, Switchboard doesn't support these parameters
  14. else
  15.     switchboard_options="$switchboard_options $1"
  16. fi
  17. shift 2>/dev/null || break
  18. done
  19.  
  20. switchboard $switchboard_options $requested_plug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement