When user logins, login script will try to connect all guid to all the running VMs. If VMs are still booting at this stage, will never automatically get its guid (until user tries to start some program there). This can for example lead to lack of nm-applet icon.
18 line
431 B
Desktop File
18 line
431 B
Desktop File
[Unit]
|
|
Description=Qubes NetVM startup
|
|
After=qubes-core.service qubes-qmemman.service libvirtd.service
|
|
Before=plymouth-quit.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
Group=qubes
|
|
Environment=DISPLAY=:0
|
|
RemainAfterExit=yes
|
|
KillMode=none
|
|
ExecStart=/bin/sh -c 'NETVM=`qubes-prefs --get default-netvm`; [ -n "$NETVM" ] && qvm-start -q --no-guid $NETVM'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
# Cover legacy init.d script
|
|
Alias=qubes_netvm.service
|