Lines 300-306
detectDE()
Link Here
|
300 |
{ |
300 |
{ |
301 |
if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; |
301 |
if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; |
302 |
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; |
302 |
elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; |
303 |
elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; |
|
|
304 |
fi |
303 |
fi |
305 |
} |
304 |
} |
306 |
|
305 |
|
Lines 357-362
su_gnome()
Link Here
|
357 |
|
356 |
|
358 |
su_generic() |
357 |
su_generic() |
359 |
{ |
358 |
{ |
|
|
359 |
XSU=`which gksu 2>/dev/null` |
360 |
if [ $? -eq 0 ] ; then |
361 |
if [ -z "$user" ] ; then |
362 |
$XSU -l "$cmd" |
363 |
else |
364 |
$XSU -l -u "$user" "$cmd" |
365 |
fi |
366 |
|
367 |
if [ $? -eq 0 ]; then |
368 |
exit_success |
369 |
else |
370 |
exit_failure_operation_failed |
371 |
fi |
372 |
fi |
373 |
|
360 |
if [ -z "$user" ] ; then |
374 |
if [ -z "$user" ] ; then |
361 |
xterm -geom 60x5 -T "xdg-su: $cmd" -e su -c "$cmd" |
375 |
xterm -geom 60x5 -T "xdg-su: $cmd" -e su -c "$cmd" |
362 |
else |
376 |
else |
Lines 412-418
fi
Link Here
|
412 |
detectDE |
426 |
detectDE |
413 |
|
427 |
|
414 |
if [ x"$DE" = x"" ]; then |
428 |
if [ x"$DE" = x"" ]; then |
415 |
XSU=`which xsu 2>/dev/null` |
429 |
XSU=`which gksu 2>/dev/null` |
416 |
if [ $? -eq 0 ] ; then |
430 |
if [ $? -eq 0 ] ; then |
417 |
DE=generic |
431 |
DE=generic |
418 |
fi |
432 |
fi |