Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Compatibily layer that redirects gnome-control-center calls to switchboard
- # Copyright: 2013 Sergey "Shnatsel" Davidoff <sergey@elementaryos.org>
- # License: GNU GPL 2.0+
- # parse command-line options
- while true; do
- if [ "${1#-}" = "$1" ] && [ -n "$1" ]; then
- # not prefixed with "-", should be the panel name
- requested_plug="$1"
- elif [ "$1" = '-v' ] || [ "$1" = '--verbose' ] || [ "$1" = '-o' ] || [ "$1" = '--overview' ]; then
- : # do nothing, Switchboard doesn't support these parameters
- else
- switchboard_options="$switchboard_options $1"
- fi
- shift 2>/dev/null || break
- done
- switchboard $switchboard_options $requested_plug
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement