service add
This commit is contained in:
parent
fd59c8294b
commit
a0324e296e
9
Return_to_Car_UI.desktop
Executable file
9
Return_to_Car_UI.desktop
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Return to Car UI
|
||||||
|
Comment=Back to Automotive Interface
|
||||||
|
Exec=/opt/car_ui/car_ui
|
||||||
|
Icon=applications-system
|
||||||
|
Terminal=false
|
||||||
|
Categories=Utility;
|
||||||
|
StartupNotify=false
|
||||||
8
car-ui.desktop
Executable file
8
car-ui.desktop
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=Car UI
|
||||||
|
Comment=Automotive Interface
|
||||||
|
Exec=/opt/car_ui/car_ui
|
||||||
|
Icon=applications-system
|
||||||
|
Terminal=false
|
||||||
|
Categories=Utility;
|
||||||
@ -21,8 +21,8 @@ Environment=QT_QPA_PLATFORM=xcb
|
|||||||
WorkingDirectory=/opt/car_ui
|
WorkingDirectory=/opt/car_ui
|
||||||
ExecStart=/opt/car_ui/car_ui
|
ExecStart=/opt/car_ui/car_ui
|
||||||
|
|
||||||
Restart=always
|
#Restart=always
|
||||||
RestartSec=2
|
#RestartSec=2
|
||||||
|
|
||||||
NoNewPrivileges=true
|
NoNewPrivileges=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
|||||||
13
qqqq
13
qqqq
@ -45,3 +45,16 @@ sudo cp bt-unblock.service /etc/systemd/system/bt-unblock.service
|
|||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable bt-unblock.service
|
sudo systemctl enable bt-unblock.service
|
||||||
sudo systemctl start bt-unblock.service
|
sudo systemctl start bt-unblock.service
|
||||||
|
|
||||||
|
|
||||||
|
# ярлык
|
||||||
|
# 1
|
||||||
|
cp Return_to_Car_UI.desktop ~/Desktop/Return_to_Car_UI.desktop
|
||||||
|
chmod +x ~/Desktop/Return_to_Car_UI.desktop
|
||||||
|
gio set ~/Desktop/Return_to_Car_UI.desktop metadata::trusted true
|
||||||
|
|
||||||
|
|
||||||
|
# 2
|
||||||
|
mkdir -p ~/.local/share/applications
|
||||||
|
cp car-ui.desktop ~/.local/share/applications/car-ui.desktop
|
||||||
|
chmod +x ~/.local/share/applications/car-ui.desktop
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user