-
Notifications
You must be signed in to change notification settings - Fork 0
/
0001-Fix-exec-quotes-and-escapes.patch
45 lines (42 loc) · 1.6 KB
/
0001-Fix-exec-quotes-and-escapes.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From 89b9728924919c621d5fe483fbd787e05e9d6683 Mon Sep 17 00:00:00 2001
From: sixg0000d <[email protected]>
Date: Tue, 22 Aug 2023 09:18:09 +0800
Subject: [PATCH] Fix exec quotes and escapes
---
app/data/scrcpy-console.desktop | 5 +----
app/data/scrcpy.desktop | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/app/data/scrcpy-console.desktop b/app/data/scrcpy-console.desktop
index 0e2f9ab0..fc02453f 100644
--- a/app/data/scrcpy-console.desktop
+++ b/app/data/scrcpy-console.desktop
@@ -2,10 +2,7 @@
Name=scrcpy (console)
GenericName=Android Remote Control
Comment=Display and control your Android device
-# For some users, the PATH or ADB environment variables are set from the shell
-# startup file, like .bashrc or .zshrc… Run an interactive shell to get
-# environment correctly initialized.
-Exec=/bin/bash --norc --noprofile -i -c "\"\\$SHELL\" -i -c scrcpy || read -p 'Press Enter to quit...'"
+Exec=/bin/sh -c "scrcpy || read -p \\"Press any key to quit...\\""
Icon=scrcpy
Terminal=true
Type=Application
diff --git a/app/data/scrcpy.desktop b/app/data/scrcpy.desktop
index 1be86a2b..5933272d 100644
--- a/app/data/scrcpy.desktop
+++ b/app/data/scrcpy.desktop
@@ -2,10 +2,7 @@
Name=scrcpy
GenericName=Android Remote Control
Comment=Display and control your Android device
-# For some users, the PATH or ADB environment variables are set from the shell
-# startup file, like .bashrc or .zshrc… Run an interactive shell to get
-# environment correctly initialized.
-Exec=/bin/sh -c "\"\\$SHELL\" -i -c scrcpy"
+Exec=scrcpy
Icon=scrcpy
Terminal=false
Type=Application
--
2.41.0