1 2 3 4 5 6
#!/bin/sh if [ $(which pkexec) ]; then pkexec --disable-internal-agent "/usr/bin/gparted" "$@" else /usr/bin/gparted "$@" fi