mirror of
https://github.com/getcompanion-ai/computer-guest.git
synced 2026-04-15 06:04:38 +00:00
fix: xfce session crash, 10gb disk with resize on boot
This commit is contained in:
parent
75b229f470
commit
b3d76bfa76
3 changed files with 32 additions and 0 deletions
|
|
@ -76,8 +76,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
xfdesktop4 \
|
xfdesktop4 \
|
||||||
xfce4-settings \
|
xfce4-settings \
|
||||||
xfce4-terminal \
|
xfce4-terminal \
|
||||||
|
xfconf \
|
||||||
thunar \
|
thunar \
|
||||||
plank \
|
plank \
|
||||||
|
e2fsprogs \
|
||||||
autocutsel \
|
autocutsel \
|
||||||
greybird-gtk-theme \
|
greybird-gtk-theme \
|
||||||
elementary-xfce-icon-theme \
|
elementary-xfce-icon-theme \
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,33 @@
|
||||||
<channel name="xfce4-session" version="1.0">
|
<channel name="xfce4-session" version="1.0">
|
||||||
<property name="general" type="empty">
|
<property name="general" type="empty">
|
||||||
<property name="SaveOnExit" type="bool" value="false"/>
|
<property name="SaveOnExit" type="bool" value="false"/>
|
||||||
|
<property name="FailsafeSessionName" type="string" value="Failsafe"/>
|
||||||
|
</property>
|
||||||
|
<property name="sessions" type="empty">
|
||||||
|
<property name="Failsafe" type="empty">
|
||||||
|
<property name="IsFailsafe" type="bool" value="true"/>
|
||||||
|
<property name="Count" type="int" value="4"/>
|
||||||
|
<property name="Client0_Command" type="array">
|
||||||
|
<value type="string" value="xfwm4"/>
|
||||||
|
</property>
|
||||||
|
<property name="Client0_Priority" type="int" value="15"/>
|
||||||
|
<property name="Client0_PerScreen" type="bool" value="false"/>
|
||||||
|
<property name="Client1_Command" type="array">
|
||||||
|
<value type="string" value="xfsettingsd"/>
|
||||||
|
</property>
|
||||||
|
<property name="Client1_Priority" type="int" value="20"/>
|
||||||
|
<property name="Client1_PerScreen" type="bool" value="false"/>
|
||||||
|
<property name="Client2_Command" type="array">
|
||||||
|
<value type="string" value="Thunar"/>
|
||||||
|
<value type="string" value="--daemon"/>
|
||||||
|
</property>
|
||||||
|
<property name="Client2_Priority" type="int" value="30"/>
|
||||||
|
<property name="Client2_PerScreen" type="bool" value="false"/>
|
||||||
|
<property name="Client3_Command" type="array">
|
||||||
|
<value type="string" value="xfdesktop"/>
|
||||||
|
</property>
|
||||||
|
<property name="Client3_Priority" type="int" value="35"/>
|
||||||
|
<property name="Client3_PerScreen" type="bool" value="false"/>
|
||||||
|
</property>
|
||||||
</property>
|
</property>
|
||||||
</channel>
|
</channel>
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,8 @@ mountpoint -q /run || mount -t tmpfs tmpfs /run
|
||||||
mkdir -p /tmp /var/tmp /run/sshd /var/log
|
mkdir -p /tmp /var/tmp /run/sshd /var/log
|
||||||
chmod 1777 /tmp /var/tmp
|
chmod 1777 /tmp /var/tmp
|
||||||
|
|
||||||
|
resize2fs /dev/vda >/dev/null 2>&1 || true
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
trap - INT TERM
|
trap - INT TERM
|
||||||
[ -n "${rng_pid:-}" ] && kill "$rng_pid" >/dev/null 2>&1 || true
|
[ -n "${rng_pid:-}" ] && kill "$rng_pid" >/dev/null 2>&1 || true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue