~ubuntu-branches/ubuntu/karmic/menu/karmic

« back to all changes in this revision

Viewing changes to scripts/su-to-root

  • Committer: Bazaar Package Importer
  • Author(s): Bill Allombert
  • Date: 2006-12-22 15:20:52 UTC
  • mfrom: (1.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061222152052-q3io0s7huxuc33x2
Tags: 2.1.33
* The "and justice for all" release.
* Apply patch from Tim Dijkstra to simplify wait_dpkg() to not require
  signal to be sent between the parent and the child to work around a
  race condition in glibc, probably bug #223110. Closes: #374834.
* Menu translations
  - Portuguese updated by Miguel Figueiredo. Closes: #399241
  - Malayalam added by Praveen. Closes: #402016
  - Tamil added by Tirumurti Vasudevan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
}
15
15
usage () {
16
16
  echo usage: $0 '[-X] [-p <user>] -c <command>' >&2
17
 
  echo '-X: command is a X11 program' >&2
 
17
  echo '  -X: command is a X11 program' >&2
18
18
  exit 1
19
19
}
20
20
 
70
70
  X11)
71
71
    if test -z "$SU_TO_ROOT_X"; then
72
72
      if which gksu >/dev/null 2>&1 ; then
73
 
        SU_TO_ROOT_X=gksu
 
73
        if test "X$KDE_FULL_SESSION" = "Xtrue" \
 
74
           && which kdesu >/dev/null 2>&1 ; then
 
75
          SU_TO_ROOT_X=kdesu
 
76
        else
 
77
          SU_TO_ROOT_X=gksu
 
78
        fi;
74
79
      elif which kdesu >/dev/null 2>&1 ; then 
75
80
        SU_TO_ROOT_X=kdesu
76
81
      elif which sux >/dev/null 2>&1 ; then