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