Skip to content

Commit 09a0eb7

Browse files
committed
feat: implement screen saver inhibition on Linux using D-Bus
1 parent 0497dc3 commit 09a0eb7

File tree

5 files changed

+219
-97
lines changed

5 files changed

+219
-97
lines changed

app/desktop/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ compose.desktop {
103103
"gluegen.rt",
104104
"jogl.all",
105105
"java.instrument", // ByteBuddy, for disabling PagingLogger
106+
"jdk.security.auth", // com.sun.security.auth.module.UnixSystem used by dbus-java SASL auth
106107
)
107108

108109
// ./gradlew suggestRuntimeModules

app/desktop/proguard-desktop.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
-keep class ** extends uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider { *; }
7373
-keep class org.apache.logging.slf4j.SLF4JServiceProvider { *; }
7474
-keep class ** extends org.slf4j.spi.SLF4JServiceProvider { *; }
75+
-keep class org.freedesktop.dbus.** { *; } # dbus-java uses ServiceLoader and extensive reflection
7576

7677
# Ktor related
7778

app/shared/ui-foundation/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ kotlin {
6868
sourceSets.desktopMain.dependencies {
6969
implementation(libs.jna)
7070
implementation(libs.jna.platform)
71+
implementation(libs.dbus.java.core)
72+
implementation(libs.dbus.java.transport.native.unixsocket)
7173
api(libs.directories)
7274
}
7375
}

0 commit comments

Comments
 (0)