WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9b2843d

Browse files
committed
Desktop (mainly Gnome ) - add additional packages, small fixes and improvements
1 parent ca73176 commit 9b2843d

File tree

8 files changed

+52
-4
lines changed

8 files changed

+52
-4
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
hexchat
2-
#pidgin
3-
#purple-discord
4-
#purple-rocketchat
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
bleachbit
2+
baobab
23
gparted

config/desktop/common/appgroups/multimedia/packages

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ celluloid
22
eog
33
gimp
44
pithos
5+
shotwell
6+
rhythmbox
7+
rhythmbox-data
58
mpv
9+
totem
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
evince
2+
evince-common
13
libreoffice
24
libreoffice-gtk3
35
libreoffice-style-elementary
46
simple-scan
7+
sane-utils

config/desktop/common/environments/gnome/config_base/packages

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,32 @@ anacron
22
at-spi2-core
33
colord
44
cups
5+
cups-browsed
6+
cups-bsd
7+
cups-pk-helper
8+
bolt
9+
bluez-cups
10+
cifs-utils
11+
fprintd
512
dbus-x11
613
dmz-cursor-theme
714
dconf-cli
815
eject
916
foomatic-db-compressed-ppds
1017
fonts-noto-cjk
18+
fonts-arphic-ukai
19+
fonts-arphic-uming
20+
fonts-droid-fallback
21+
fonts-liberation-sans-narrow
22+
fonts-noto-core
23+
fonts-noto-mono
1124
fonts-ubuntu
1225
fonts-ubuntu-console
1326
gdebi
1427
gnome-control-center
1528
gnome-disk-utility
1629
gnome-desktop3-data
30+
gnome-online-accounts
1731
gnome-keyring
1832
gnome-menus
1933
gnome-screenshot
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
discord

packages/bsp/common/usr/lib/armbian/armbian-firstlogin

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ add_user() {
552552
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
553553
done
554554

555+
# Set default user login icon
556+
set_user_icon "$RealUserName"
557+
555558
while [ -f "/root/.not_logged_in_yet" ]; do
556559
if [ -z "$PRESET_USER_PASSWORD" ];then
557560
read_password "Create user ($username)"
@@ -605,7 +608,7 @@ add_user() {
605608
# (docker-ce package creates this group automatically during postinst, but we create it early
606609
# to guarantee group membership is ready immediately after user creation.)
607610
if ! getent group docker >/dev/null; then
608-
if ! addgroup --system docker 2>/dev/null; then
611+
if ! addgroup --system --quiet docker 2>/dev/null; then
609612
echo "Warning: Failed to create docker group" >&2
610613
fi
611614
fi
@@ -637,6 +640,31 @@ add_user() {
637640

638641
}
639642

643+
set_user_icon() {
644+
local U="$1"
645+
local ICON_SRC="/usr/share/armbian/armbian-user-icon.png"
646+
local ICON_DST="/var/lib/AccountsService/icons/$U"
647+
local META="/var/lib/AccountsService/users/$U"
648+
649+
# If the icon doesn't exist, do nothing.
650+
[ -f "$ICON_SRC" ] || return 0
651+
652+
mkdir -p /var/lib/AccountsService/icons /var/lib/AccountsService/users
653+
654+
# Copy icon
655+
install -m 0644 "$ICON_SRC" "$ICON_DST"
656+
657+
# Write AccountsService metadata
658+
cat <<- EOF > "$META"
659+
[User]
660+
Icon=$ICON_DST
661+
SystemAccount=false
662+
EOF
663+
chown root:root "$ICON_DST" "$META"
664+
chmod 0644 "$ICON_DST" "$META"
665+
}
666+
667+
640668
if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
641669

642670
. /root/.not_logged_in_yet
12.2 KB
Loading

0 commit comments

Comments
 (0)