Skip to content

Commit e8e7fac

Browse files
committed
Mobinets参赛资料提交
2 parents d4e882f + de010cd commit e8e7fac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+679
-319
lines changed

MobiNetS作品原创承诺书.pdf

1.67 MB
Binary file not shown.

MobiNetS可执行文件/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/temp
87.8 MB
Binary file not shown.
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
sudo chmod 666 /dev/input/*
3+
sudo chmod 666 /dev/uinput
4+
sudo chmod 777 ./deviceShare
5+
if [ -n "$WAYLAND_DISPLAY" ]; then
6+
echo "is wayland"
7+
PACKAGE="wl-clipboard"
8+
echo "installing wl-clipboard"
9+
sudo apt install wl-clipboard >/dev/null 2>&1
10+
export DISPLAY=:0
11+
NOWUSER=$USER
12+
sudo touch /home/$NOWUSER/.Xauthority
13+
xauth generate :0 . trusted >/dev/null 2>&1
14+
XAUTHORITY="/home/$USER/.Xauthority"
15+
./deviceShare >/dev/null 2>&1 &
16+
else
17+
./deviceShare >/dev/null 2>&1 &
18+
fi

0 commit comments

Comments
 (0)