mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Use app id as dbus name for flatpak version
This commit is contained in:
parent
1bf703b012
commit
4e61f2b2e5
1 changed files with 8 additions and 1 deletions
|
@ -2,13 +2,20 @@ package org.asamk.signal;
|
|||
|
||||
import org.asamk.signal.dbus.DbusUtils;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
public class DbusConfig {
|
||||
|
||||
private static final String SIGNAL_BUSNAME = "org.asamk.Signal";
|
||||
private static final String SIGNAL_BUSNAME_FLATPAK = "org.asamk.SignalCli";
|
||||
private static final String SIGNAL_OBJECT_BASE_PATH = "/org/asamk/Signal";
|
||||
|
||||
public static String getBusname() {
|
||||
return SIGNAL_BUSNAME;
|
||||
if (new File("/.flatpak-info").exists()) {
|
||||
return SIGNAL_BUSNAME_FLATPAK;
|
||||
} else {
|
||||
return SIGNAL_BUSNAME;
|
||||
}
|
||||
}
|
||||
|
||||
public static String getObjectPath() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue