crusoe@crusoe-desktop:~$ gksudo gedit /etc/apt/sources.list (gedit:7868): GnomeUI-WARNING **: While connecting to session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed. crusoe@crusoe-desktop:~$ gksudo sh -c "gedit /etc/apt/sources.list; aptitude update; aptitude dist-upgrade" gksudo: invalid option -- c GKsu version 1.3.7 Usage: gksudo [-u ] [-k] [-l] --always-ask-password, -a Do not try to check if a password is really needed for running the command, or if there are other means of obtaining it: simply ask for it. --debug, -d Print information on the screen that might be useful for diagnosing and/or solving problems. --disable-grab, -g Disable the "locking" of the keyboard, mouse, and focus done by the program when asking for password. --icon , -i Replace the default window icon with the argument. --message , -m Replace the standard message shown to ask for password for the argument passed to the option. --print-pass, -p Ask gksu to print the password to stdout, just like ssh-askpass. Useful to use in scripts with programs that accept receiving the password on stdin. --prompt, -P Ask the user if they want to have their keyboard and mouse grabbed before doing so. --ssh-fwd, -s Strip the host part of the $DISPLAY variable, so that GKSu will work on SSH X11 Forwarding. --sudo-mode, -S Make GKSu use sudo instead of su, as if it had been run as "gksudo". --title , -t <title> Replace the default title with the argument. --user <user>, -u <user> Call <command> as the specified user. --desktop <file>, -D <file> Use a .desktop file to get the name of the application and the icon from. --preserve-env, -k Preserve the current environments, does not set $HOME nor $PATH, for example. --login, -l Make this a login shell. Beware this may cause problems with the Xauthority magic. Run xhost to allow the target user to open windows on your display!