Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 323d7ba

Browse files
author
Carlos Hernandez
committed
Add clipboard support
1 parent 62737fb commit 323d7ba

File tree

1 file changed

+15
-0
lines changed
  • root/etc/services.d/xclipboard

1 file changed

+15
-0
lines changed

root/etc/services.d/xclipboard/run

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/execlineb -P
2+
3+
# Redirect stderr to stdout.
4+
fdmove -c 2 1
5+
6+
# Wait until Xorg is running
7+
if { s6-svwait -t 10000 -U /var/run/s6/services/Xorg/ }
8+
9+
# Drop privileges and set env
10+
s6-setuidgid abc
11+
s6-env DISPLAY=:1 HOME=/config
12+
13+
# Execute xclipboard
14+
/usr/bin/xclipboard
15+

0 commit comments

Comments
 (0)