|
@ -347,6 +347,19 @@ echo "# libre_re pixmap" |
|
|
echo "=================" |
|
|
echo "=================" |
|
|
if [[ ! -f /usr/share/pixmaps/faces/libre_re.png ]]; then |
|
|
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" |
|
|
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 |
|
|
else |
|
|
echo "pixmap already copied!" |
|
|
echo "pixmap already copied!" |
|
|
fi |
|
|
fi |
|
|