Desktop (mainly Gnome ) - add additional packages, small fixes and improvements

This commit is contained in:
Igor Pecovnik 2025-11-18 15:32:05 +01:00 committed by Igor
parent ca73176bd9
commit 9b2843d225
8 changed files with 52 additions and 4 deletions

View File

@ -1,4 +1 @@
hexchat hexchat
#pidgin
#purple-discord
#purple-rocketchat

View File

@ -1,2 +1,3 @@
bleachbit bleachbit
baobab
gparted gparted

View File

@ -2,4 +2,8 @@ celluloid
eog eog
gimp gimp
pithos pithos
shotwell
rhythmbox
rhythmbox-data
mpv mpv
totem

View File

@ -1,4 +1,7 @@
evince
evince-common
libreoffice libreoffice
libreoffice-gtk3 libreoffice-gtk3
libreoffice-style-elementary libreoffice-style-elementary
simple-scan simple-scan
sane-utils

View File

@ -2,18 +2,32 @@ anacron
at-spi2-core at-spi2-core
colord colord
cups cups
cups-browsed
cups-bsd
cups-pk-helper
bolt
bluez-cups
cifs-utils
fprintd
dbus-x11 dbus-x11
dmz-cursor-theme dmz-cursor-theme
dconf-cli dconf-cli
eject eject
foomatic-db-compressed-ppds foomatic-db-compressed-ppds
fonts-noto-cjk fonts-noto-cjk
fonts-arphic-ukai
fonts-arphic-uming
fonts-droid-fallback
fonts-liberation-sans-narrow
fonts-noto-core
fonts-noto-mono
fonts-ubuntu fonts-ubuntu
fonts-ubuntu-console fonts-ubuntu-console
gdebi gdebi
gnome-control-center gnome-control-center
gnome-disk-utility gnome-disk-utility
gnome-desktop3-data gnome-desktop3-data
gnome-online-accounts
gnome-keyring gnome-keyring
gnome-menus gnome-menus
gnome-screenshot gnome-screenshot

View File

@ -552,6 +552,9 @@ add_user() {
if ! id "$RealUserName" > /dev/null 2>&1; then break; else echo -e "Username \e[0;31m$RealUserName\x1B[0m already exists on the system."; fi if ! id "$RealUserName" > /dev/null 2>&1; then break; else echo -e "Username \e[0;31m$RealUserName\x1B[0m already exists on the system."; fi
done done
# Set default user login icon
set_user_icon "$RealUserName"
while [ -f "/root/.not_logged_in_yet" ]; do while [ -f "/root/.not_logged_in_yet" ]; do
if [ -z "$PRESET_USER_PASSWORD" ];then if [ -z "$PRESET_USER_PASSWORD" ];then
read_password "Create user ($username)" read_password "Create user ($username)"
@ -605,7 +608,7 @@ add_user() {
# (docker-ce package creates this group automatically during postinst, but we create it early # (docker-ce package creates this group automatically during postinst, but we create it early
# to guarantee group membership is ready immediately after user creation.) # to guarantee group membership is ready immediately after user creation.)
if ! getent group docker >/dev/null; then if ! getent group docker >/dev/null; then
if ! addgroup --system docker 2>/dev/null; then if ! addgroup --system --quiet docker 2>/dev/null; then
echo "Warning: Failed to create docker group" >&2 echo "Warning: Failed to create docker group" >&2
fi fi
fi fi
@ -637,6 +640,31 @@ add_user() {
} }
set_user_icon() {
local U="$1"
local ICON_SRC="/usr/share/armbian/armbian-user-icon.png"
local ICON_DST="/var/lib/AccountsService/icons/$U"
local META="/var/lib/AccountsService/users/$U"
# If the icon doesn't exist, do nothing.
[ -f "$ICON_SRC" ] || return 0
mkdir -p /var/lib/AccountsService/icons /var/lib/AccountsService/users
# Copy icon
install -m 0644 "$ICON_SRC" "$ICON_DST"
# Write AccountsService metadata
cat <<- EOF > "$META"
[User]
Icon=$ICON_DST
SystemAccount=false
EOF
chown root:root "$ICON_DST" "$META"
chmod 0644 "$ICON_DST" "$META"
}
if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
. /root/.not_logged_in_yet . /root/.not_logged_in_yet

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB