Skip to content

Commit 83ace84

Browse files
committed
Restore the .jar extension on the device side
Commit 3da95b5 renamed 'scrcpy-server.jar' to 'scrcpy-server' to avoid issues on the client side. However, removing the extension may cause issues with app_process, so restore the extension only on the device side. Fixes <#944>
1 parent c9d886f commit 83ace84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define SERVER_FILENAME "scrcpy-server"
1717

1818
#define DEFAULT_SERVER_PATH PREFIX "/share/scrcpy/" SERVER_FILENAME
19-
#define DEVICE_SERVER_PATH "/data/local/tmp/" SERVER_FILENAME
19+
#define DEVICE_SERVER_PATH "/data/local/tmp/scrcpy-server.jar"
2020

2121
static const char *
2222
get_server_path(void) {

server/src/main/java/com/genymobile/scrcpy/Server.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public final class Server {
99

10-
private static final String SERVER_PATH = "/data/local/tmp/scrcpy-server";
10+
private static final String SERVER_PATH = "/data/local/tmp/scrcpy-server.jar";
1111

1212
private Server() {
1313
// not instantiable

0 commit comments

Comments
 (0)