aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-02-11 22:40:11 +0100
committerdec05eba <dec05eba@protonmail.com>2025-02-11 22:40:11 +0100
commit8003c209fea16cd164817306cb33d46ac61a44f0 (patch)
treeddb54e82c0606f040ebcb19d67301622a4572d23 /src/main.cpp
parent1734d48af6edd1b115910a61e132713459b1d8f1 (diff)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 17a73a5..ffaf596 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -182,6 +182,7 @@ int main(int argc, char **argv) {
// that uses pid sandboxing. Replace this with a better method once we no longer rely on linux global hotkeys on some platform.
// TODO: This method doesn't work when disabling hotkeys and the method below with pidof gsr-ui doesn't work in flatpak.
// What do? creating a pid file doesn't work in flatpak either.
+ // TODO: This doesn't work in flatpak when disabling hotkeys.
if(is_gsr_ui_virtual_keyboard_running() || gsr::pidof("gsr-ui", getpid()) != -1) {
gsr::Rpc rpc;
if(rpc.open("gsr-ui") && rpc.write("show_ui\n", 8)) {