View | Details | Raw Unified | Return to bug 27015
Collapse All | Expand All

(-)/usr/bin/xdg-su~ (-1 / +16 lines)
Lines 357-362 su_gnome() Link Here
357
357
358
su_generic()
358
su_generic()
359
{
359
{
360
    XSU=`which gksu 2>/dev/null`
361
    if [ $? -eq 0 ] ; then
362
        if [ -z "$user" ] ; then
363
            $XSU "$cmd"
364
        else
365
            $XSU -u "$user" "$cmd"
366
        fi
367
368
        if [ $? -eq 0 ]; then
369
            exit_success
370
        else
371
            exit_failure_operation_failed
372
        fi
373
    fi
374
360
    if [ -z "$user" ] ; then
375
    if [ -z "$user" ] ; then
361
        xterm -geom 60x5 -T "xdg-su: $cmd" -e su -c "$cmd"
376
        xterm -geom 60x5 -T "xdg-su: $cmd" -e su -c "$cmd"
362
    else
377
    else
Lines 412-418 fi Link Here
412
detectDE
427
detectDE
413
428
414
if [ x"$DE" = x"" ]; then
429
if [ x"$DE" = x"" ]; then
415
    XSU=`which xsu 2>/dev/null`
430
    XSU=`which gksu 2>/dev/null`
416
    if [ $? -eq 0 ] ; then
431
    if [ $? -eq 0 ] ; then
417
        DE=generic
432
        DE=generic
418
    fi
433
    fi

Return to bug 27015