~ubuntu-branches/ubuntu/precise/fglrx-installer/precise-updates

« back to all changes in this revision

Viewing changes to usr/X11R6/bin/amdxdg-su

  • Committer: Package Import Robot
  • Author(s): Alberto Milone
  • Date: 2013-12-18 17:50:31 UTC
  • mfrom: (1.1.29)
  • Revision ID: package-import@ubuntu.com-20131218175031-35cj2hx9xpmm8xot
Tags: 2:13.101-0ubuntu0.0.1
* New upstream release:
  - Add support for AMD A10, A8, A6, and A4 Series APUs.
  - Add GLX_EXT_buffer_age extension support.
  - Add Xserver 1.14 Support.
  - [371937] Fix black screen while entering Team
    Fortress 2  under cinnamon desktop environment.
  - [366812] Fix tearing for some OpenGL applications
    with VSYNC on or off.
  - [373575] Fix taskbar missing after UVD playback
    on Ubuntu 12.04.
  - [370955] Fix corruption in Team Fortress 2 when
    running Dustbowl map.
  - [377199] Fix the error for APL initialization
    failure.
  - [378086] Fix screen corruption when kill X on
    Ubuntu 13.04.
  - [374657] Fix some WebGL conformance test
    failures.
  - [377379] Fix the regression of performance drop
    with XBMC for UVD playback.
* debian/substvars:
  - Add support for X ABI up to 14 and xservers up to
    xserver-xorg-core-lts-saucy.
* debian/rules:
  - Sign the driver to remove the watermark.
* debian/dkms.conf.in, buildfix_kernel_3.12.patch:
  - Add support for Linux 3.12.
  - Add proper support for Linux 3.11 (LP: #1262238).

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#                 Change done by Advanced Micro Devices, Inc.
46
46
# July 7, 2010  - Added support to use consolehelper, gnome-terminal and konsole.
47
47
#                 Change done by Advanced Micro Devices, Inc.
 
48
# August 27, 2012 - Added support to use kdesudo
 
49
#                   Change done by Advance Micro Devides, Inc.
48
50
#
49
51
#---------------------------------------------
50
52
 
388
390
#   Functions that use different graphical dialogs to authenticate
389
391
#----------------------------------------------------------------------------
390
392
 
 
393
sudo_kde()
 
394
{
 
395
    KDESUDO=`which kdesudo 2>/dev/null`
 
396
    if [ $? -eq 0 ] ; then
 
397
        if [ -z "$user" ] ; then
 
398
             $KDESUDO -c "$cmd"
 
399
        else
 
400
             $KDESUDO -u "$user" -c "$cmd"
 
401
        fi
 
402
 
 
403
        if [ $? -eq 0 ]; then
 
404
            exit_success
 
405
        else
 
406
            exit_failure_operation_failed
 
407
        fi
 
408
    else
 
409
        su_kde
 
410
    fi
 
411
}
 
412
 
391
413
su_kde()
392
414
{
393
415
    KDESU=`which kdesu 2>/dev/null`
521
543
 
522
544
case "$DE" in
523
545
    kde)
524
 
    su_kde
 
546
    sudo_kde
525
547
    ;;
526
548
 
527
549
    gnome)