From 12fe04e16418f07e2ea2003325c4ed314bd024b9 Mon Sep 17 00:00:00 2001 From: Oro Date: Mon, 19 Dec 2022 12:31:17 -0600 Subject: [PATCH 1/3] Use shared-modules for SDL2 and libdecor --- .gitmodules | 3 +++ net.supertuxkart.SuperTuxKart.json | 5 +++-- shared-modules | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 shared-modules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..1e7a990 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "shared-modules"] + path = shared-modules + url = https://github.com/flathub/shared-modules.git diff --git a/net.supertuxkart.SuperTuxKart.json b/net.supertuxkart.SuperTuxKart.json index 18cad4a..703dbf3 100644 --- a/net.supertuxkart.SuperTuxKart.json +++ b/net.supertuxkart.SuperTuxKart.json @@ -9,9 +9,9 @@ "rename-icon": "supertuxkart", "command": "supertuxkart", "finish-args": [ - "--share=ipc", + "--socket=wayland", "--socket=fallback-x11", - "--socket=wayland", + "--share=ipc", "--socket=pulseaudio", "--share=network", "--device=all" @@ -27,6 +27,7 @@ "/share/vala", "*.la", "*.a"], "modules": [ + "shared-modules/SDL2/SDL2-2.26.1-with-libdecor.json", { "name": "libopenglrecorder", "buildsystem": "cmake", diff --git a/shared-modules b/shared-modules new file mode 160000 index 0000000..096ab6b --- /dev/null +++ b/shared-modules @@ -0,0 +1 @@ +Subproject commit 096ab6b0be271f07a42a647b5ffc83808a160e59 From 52e361b81a2b5c279ad8306d0eeefff4e5ce788b Mon Sep 17 00:00:00 2001 From: Oro <93224879+orowith2os@users.noreply.github.com> Date: Mon, 19 Dec 2022 13:20:13 -0600 Subject: [PATCH 2/3] Add Discord RPC to the filesystem perms --- net.supertuxkart.SuperTuxKart.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net.supertuxkart.SuperTuxKart.json b/net.supertuxkart.SuperTuxKart.json index 703dbf3..ad398ed 100644 --- a/net.supertuxkart.SuperTuxKart.json +++ b/net.supertuxkart.SuperTuxKart.json @@ -14,7 +14,8 @@ "--share=ipc", "--socket=pulseaudio", "--share=network", - "--device=all" + "--device=all", + "--filesystem=xdg-run/app/com.discordapp.Discord:create" ], "build-options" : { "env": { From d9114de90fda5c889d70b8113b13b9b513dbd6e0 Mon Sep 17 00:00:00 2001 From: Oro <93224879+orowith2os@users.noreply.github.com> Date: Mon, 19 Dec 2022 17:19:17 -0600 Subject: [PATCH 3/3] Use spaces rather than tabs --- net.supertuxkart.SuperTuxKart.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net.supertuxkart.SuperTuxKart.json b/net.supertuxkart.SuperTuxKart.json index ad398ed..931e504 100644 --- a/net.supertuxkart.SuperTuxKart.json +++ b/net.supertuxkart.SuperTuxKart.json @@ -9,13 +9,13 @@ "rename-icon": "supertuxkart", "command": "supertuxkart", "finish-args": [ - "--socket=wayland", + "--socket=wayland", "--socket=fallback-x11", - "--share=ipc", + "--share=ipc", "--socket=pulseaudio", "--share=network", "--device=all", - "--filesystem=xdg-run/app/com.discordapp.Discord:create" + "--filesystem=xdg-run/app/com.discordapp.Discord:create" ], "build-options" : { "env": { @@ -28,7 +28,7 @@ "/share/vala", "*.la", "*.a"], "modules": [ - "shared-modules/SDL2/SDL2-2.26.1-with-libdecor.json", + "shared-modules/SDL2/SDL2-2.26.1-with-libdecor.json", { "name": "libopenglrecorder", "buildsystem": "cmake",