ALT Linux Bugzilla
– Attachment 5361 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-gksu.patch
xdg-su-gksu.patch (text/plain), 1018 bytes, created by
Zerg
on 2012-03-07 01:31:26 MSK
(
hide
)
Description:
xdg-su-gksu.patch
Filename:
MIME Type:
Creator:
Zerg
Created:
2012-03-07 01:31:26 MSK
Size:
1018 bytes
patch
obsolete
>--- xdg-su~ 2012-02-17 09:33:01.000000000 +0400 >+++ xdg-su 2012-03-07 01:29:04.492809901 +0400 >@@ -300,7 +300,6 @@ detectDE() > { > if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde; > elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome; >- elif xprop -root _DT_SAVE_MODE | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce; > fi > } > >@@ -357,6 +356,21 @@ su_gnome() > > su_generic() > { >+ XSU=`which gksu 2>/dev/null` >+ if [ $? -eq 0 ] ; then >+ if [ -z "$user" ] ; then >+ $XSU -l "$cmd" >+ else >+ $XSU -l -u "$user" "$cmd" >+ fi >+ >+ if [ $? -eq 0 ]; then >+ exit_success >+ else >+ exit_failure_operation_failed >+ fi >+ fi >+ > if [ -z "$user" ] ; then > xterm -geom 60x5 -T "xdg-su: $cmd" -e su -c "$cmd" > else >@@ -412,7 +426,7 @@ fi > detectDE > > if [ x"$DE" = x"" ]; then >- XSU=`which xsu 2>/dev/null` >+ XSU=`which gksu 2>/dev/null` > if [ $? -eq 0 ] ; then > DE=generic > fi
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