phctool-0.5.2.2_all_paths_tool_sudo.patch 547 B

12345678910111213141516171819
  1. --- a/phctool.sh 2007-10-27 22:32:35.000000000 +0200
  2. +++ b/phctool.sh 2009-09-05 23:20:18.000000000 +0200
  3. @@ -1,10 +1,7 @@
  4. #!/bin/sh
  5. -#this shellscript is just a wrapper to subphctool.sh
  6. -#but necessary to run phctool with sudo even from the tray icon
  7. -PROGPATH=`dirname "$0"`
  8. -cd $PROGPATH
  9. -if test -e /usr/bin/gksu
  10. - then gksu ./subphctool.sh $1
  11. - else sudo ./subphctool.sh $1
  12. -fi
  13. +#this shellscript is just a wrapper to subphctool.py
  14. +#but necessary to run phctool from another directory
  15. +
  16. +cd /usr/share/phctool
  17. +sudo ./subphctool.sh $1