Mageia Bugzilla – Attachment 5892 Details for
Bug 10310
userdrake should use dbus org.freedesktop.Accounts to get/set user account info
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
1/2: GetFaceIcon() can be called w/o $user parameter
userdrake-dbus-small1.patch (text/plain), 1.66 KB, created by
Thierry Vignaud
on 2015-02-11 08:54:15 CET
(
hide
)
Description:
1/2: GetFaceIcon() can be called w/o $user parameter
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-02-11 08:54:15 CET
Size:
1.66 KB
patch
obsolete
>GetFaceIcon() can be called w/o $user set > >also update Copyright > >--- /usr/sbin/drakuser_bak 2013-04-23 21:44:18.000000000 +0200 >+++ /usr/sbin/drakuser 2013-06-09 12:00:35.484044798 +0200 >@@ -1,11 +1,13 @@ > #!/usr/bin/perl > ################################################################################ >-# # >+# # > # # > # Copyright (C) 2003-2009 Mandriva # >+# Copyright (C) 2013-2014 Mageia # > # # > # Daouda Lo # > # Thierry Vignaud <thierry.vignaud@gmail.com> # >+# Pablo Saratxaga <pablo@walon.org> # > # # > # This program is free software; you can redistribute it and/or modify # > # it under the terms of the GNU General Public License Version 2 as # > >@@ -334,7 +342,10 @@ > my @icons = any::facesnames(); > my $i; > my $current_icon; >- my $user_icon = "$::prefix/usr/share/faces/$user.png"; >+ my $user_icon; >+ if ($user) { >+ $user_icon = "$::prefix/usr/share/faces/$user.png"; >+ } > gtkpack_(my $hb = Gtk2::HBox->new(0, 2), > 0, Gtk2::Label->new(N("Click on the icon to change it") . ' '), > 0, my $bt = Gtk2::Button->new
GetFaceIcon() can be called w/o $user set also update Copyright --- /usr/sbin/drakuser_bak 2013-04-23 21:44:18.000000000 +0200 +++ /usr/sbin/drakuser 2013-06-09 12:00:35.484044798 +0200 @@ -1,11 +1,13 @@ #!/usr/bin/perl ################################################################################ -# # +# # # # # Copyright (C) 2003-2009 Mandriva # +# Copyright (C) 2013-2014 Mageia # # # # Daouda Lo # # Thierry Vignaud <thierry.vignaud@gmail.com> # +# Pablo Saratxaga <pablo@walon.org> # # # # This program is free software; you can redistribute it and/or modify # # it under the terms of the GNU General Public License Version 2 as # @@ -334,7 +342,10 @@ my @icons = any::facesnames(); my $i; my $current_icon; - my $user_icon = "$::prefix/usr/share/faces/$user.png"; + my $user_icon; + if ($user) { + $user_icon = "$::prefix/usr/share/faces/$user.png"; + } gtkpack_(my $hb = Gtk2::HBox->new(0, 2), 0, Gtk2::Label->new(N("Click on the icon to change it") . ' '), 0, my $bt = Gtk2::Button->new
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10310
:
4058
|
4126
| 5892 |
5893