[Gambas-user] Issue 112 in gambas: gb.desktop mod for passwords - LXDE
gambas at ...2524...
gambas at ...2524...
Tue Sep 27 03:12:41 CEST 2011
Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any
Desktop-Any GUI-Any
New issue 112 by adamn... at ...626...: gb.desktop mod for passwords - LXDE
http://code.google.com/p/gambas/issues/detail?id=112
Benoit,
Another LXDE mod, but I'm not sure whether this will work for all LXDE. It
does for me because its running under gdm (which provides/requires
gnome-keyring). If LXDE is running under a different display manager then
gnome-keyring may not be installed.
I leave the decision up to you as to whether to follow this approach.
Bruce
Index: _Desktop_Passwords.class
===================================================================
--- _Desktop_Passwords.class (revision 4147)
+++ _Desktop_Passwords.class (working copy)
@@ -24,7 +24,7 @@
Shell Subst("dcop kded kwalletd open &1 0", Shell(sWallet)) To
sResult
$sKDEWalletId = Trim(sResult)
- Case "GNOME"
+ Case "GNOME", "LXDE"
Component.Load("gb.desktop.gnome")
@@ -57,7 +57,7 @@
sResult = Replace(sResult, "\n", "")
Return sResult
- Case "GNOME"
+ Case "GNOME", "LXDE"
Return _Keyring.GetPassword(Key)
@@ -81,7 +81,7 @@
Shell Subst("dcop kded kwalletd writePassword &1 &2 &3 &4",
$sKDEWalletId, Shell$(Application.Name), Shell$(Key), Shell$(Value)) Wait
- Case "GNOME"
+ Case "GNOME", "LXDE"
_Keyring.SetPassword(Key, Value)
More information about the User
mailing list