Skip to content

Commit c4e1cae

Browse files
blucaDaanDeMeyer
authored andcommitted
gnome: add workaround for accountsservices and enable gnome-initial-setup
Needed until https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/89 is fixed to let GNOME know that homed users exist and there's no need to run the initial user setup. Install the initial setup package so that if someone doesn't create a user ahead of time there's a nice GUI for it.
1 parent b963827 commit c4e1cae

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

mkosi.profiles/gnome/mkosi.conf.d/debian/mkosi.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ Distribution=debian
77
Packages=
88
gnome-browser-connector
99
gnome-core
10-
# TODO: enable when it integrates with homed
11-
# gnome-initial-setup
10+
gnome-initial-setup
1211
gnome-keyring-pkcs11
1312
gnome-session-xsession
1413
gnome-software-plugin-flatpak
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
# TODO: drop once https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/89 is fixed
3+
4+
[Unit]
5+
Description=Tell the accounts service about homed users
6+
After=systemd-homed.service accounts-daemon.service
7+
Before=systemd-user-sessions.service
8+
9+
[Service]
10+
Type=oneshot
11+
ExecStart=/bin/bash -c "for n in $$(busctl call org.freedesktop.home1 /org/freedesktop/home1 org.freedesktop.home1.Manager ListHomes --json=pretty | jq -r '.data.[].[].[0]'); do busctl call org.freedesktop.Accounts /org/freedesktop/Accounts org.freedesktop.Accounts CacheUser s $$n; done"
12+
13+
[Install]
14+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)