|
|
@ -347,6 +347,19 @@ echo "# libre_re pixmap" |
|
|
|
echo "=================" |
|
|
|
if [[ ! -f /usr/share/pixmaps/faces/libre_re.png ]]; then |
|
|
|
sudo curl -o /usr/share/pixmaps/faces/libre_re.png "$GIT_BASE_URL/raw/branch/master/lib/pixmap/libre_re.png" |
|
|
|
gnome-control-center user-accounts |
|
|
|
cat <<EOF | python3 - |
|
|
|
import dbus |
|
|
|
import os |
|
|
|
import pwd |
|
|
|
|
|
|
|
user_id = pwd.getpwuid(os.getuid()).pw_uid |
|
|
|
icon_file = '/usr/share/pixmaps/faces/libre_re.png' |
|
|
|
bus = dbus.SystemBus() |
|
|
|
user_name = bus.get_object('org.freedesktop.Accounts', '/org/freedesktop/Accounts/User' + str(user_id)) |
|
|
|
properties_manager = dbus.Interface(user_name, dbus_interface='org.freedesktop.DBus.Properties') |
|
|
|
properties_manager.SetIconFile( icon_file, dbus_interface='org.freedesktop.Accounts.User') |
|
|
|
EOF |
|
|
|
else |
|
|
|
echo "pixmap already copied!" |
|
|
|
fi |
|
|
|