ALT Linux Bugzilla
– Attachment 5365 Details for
Bug 27015
xdg-su don't work in LXDE
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
xdg-su-lxde-added.patch
xdg-su-lxde-added.patch (text/plain), 1.13 KB, created by
Radik Usupov
on 2012-03-07 20:05:56 MSK
(
hide
)
Description:
xdg-su-lxde-added.patch
Filename:
MIME Type:
Creator:
Radik Usupov
Created:
2012-03-07 20:05:56 MSK
Size:
1.13 KB
patch
obsolete
>diff --git a/xdg-utils/scripts/xdg-su b/xdg-utils/scripts/xdg-su >index 88cf228..efcac64 100755 >--- a/xdg-utils/scripts/xdg-su >+++ b/xdg-utils/scripts/xdg-su >@@ -300,6 +300,7 @@ detectDE() > { > if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; > elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; >+ elif [ x"$XDG_CURRENT_DESKTOP" = x"LXDE" ]; then DE=lxde; > elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; > fi > } >@@ -355,6 +356,29 @@ su_gnome() > fi > } > >+su_lxde() >+{ >+ LXSU=`which beesu 2>/dev/null` >+ if [ $? -ne 0 ] ; then >+ LXSU=`which gksu 2>/dev/null` >+ fi >+ if [ $? -eq 0 ] ; then >+ if [ -z "$user" ] ; then >+ $LXSU -c "$cmd" >+ else >+ $LXSU -u "$user" -c "$cmd" >+ fi >+ >+ if [ $? -eq 0 ]; then >+ exit_success >+ else >+ exit_failure_operation_failed >+ fi >+ else >+ su_generic >+ fi >+} >+ > su_generic() > { > if [ -z "$user" ] ; then >@@ -427,6 +451,10 @@ case "$DE" in > su_gnome > ;; > >+ lxde) >+ su_lxde >+ ;; >+ > generic) > su_generic > ;;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27015
:
5340
|
5341
|
5360
|
5361
| 5365