This repository has been archived by the owner on Sep 29, 2024. It is now read-only.
forked from Schneegans/gnome-shell-pod
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run
systemd-socket-proxyd
as a D-Bus proxy
- Loading branch information
Showing
6 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,10 @@ RUN systemctl enable xvfb@:99.service && \ | |
useradd -m -U -G users,adm gnomeshell && \ | ||
mkdir -p /var/lib/systemd/linger && \ | ||
touch /var/lib/systemd/linger/gnomeshell && \ | ||
su -l gnomeshell -c ' \ | ||
mkdir -p $HOME/.config/systemd/user/sockets.target.wants/ && \ | ||
ln -s /etc/xdg/systemd/user/[email protected] $HOME/.config/systemd/user/sockets.target.wants/[email protected] \ | ||
' && \ | ||
systemd-machine-id-setup | ||
|
||
# dbus port | ||
|
1 change: 0 additions & 1 deletion
1
common/etc/dbus-1/session.d/tcp.conf → common/etc/dbus-1/session.d/anonymous.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=D-Bus TCP proxy on port %I | ||
Requires=dbus.socket | ||
After=dbus.socket | ||
Requires=dbus-proxy@%i.socket | ||
After=dbus-proxy@%i.socket | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/lib/systemd/systemd-socket-proxyd %t/bus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=D-Bus TCP proxy on port %I | ||
|
||
[Socket] | ||
ListenStream=%I | ||
|
||
[Install] | ||
WantedBy=sockets.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,11 @@ RUN systemctl enable xvfb@:99.service && \ | |
systemctl mask systemd-oomd low-memory-monitor rtkit-daemon udisks2 && \ | ||
useradd -m -U -G users,adm gnomeshell && \ | ||
mkdir -p /var/lib/systemd/linger && \ | ||
touch /var/lib/systemd/linger/gnomeshell | ||
touch /var/lib/systemd/linger/gnomeshell && \ | ||
su -l gnomeshell -c ' \ | ||
mkdir -p $HOME/.config/systemd/user/sockets.target.wants/ && \ | ||
ln -s /etc/xdg/systemd/user/[email protected] $HOME/.config/systemd/user/sockets.target.wants/[email protected] \ | ||
' | ||
|
||
# dbus port | ||
EXPOSE 1234 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,11 @@ RUN systemctl enable xvfb@:99.service && \ | |
systemctl --global mask org.gnome.SettingsDaemon.Subscription && \ | ||
adduser -m -U -G users,adm gnomeshell && \ | ||
mkdir -p /var/lib/systemd/linger && \ | ||
touch /var/lib/systemd/linger/gnomeshell | ||
touch /var/lib/systemd/linger/gnomeshell && \ | ||
su -l gnomeshell -c ' \ | ||
mkdir -p $HOME/.config/systemd/user/sockets.target.wants/ && \ | ||
ln -s /etc/xdg/systemd/user/[email protected] $HOME/.config/systemd/user/sockets.target.wants/[email protected] \ | ||
' | ||
|
||
# dbus port | ||
EXPOSE 1234 | ||
|