Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI
This commit is contained in:
1 parent
51a1a91d42
commit
62ac46e498
100 files changed
+2736
-240
No files matched your search
@@ -490,12 +490,13 @@ class PhoneController {
|
||||
}
|
||||
|
||||
static std::string getSxmoCfgDir() {
|
||||
const char* xdg = std::getenv("XDG_CONFIG_HOME");
|
||||
if (xdg && xdg[0]) {
|
||||
return std::string(xdg) + "/sxmo";
|
||||
if (::access("/tmp/bananarchy_duress_mode", F_OK) != 0) {
|
||||
const char* xdg = std::getenv("XDG_CONFIG_HOME");
|
||||
if (xdg && xdg[0]) {
|
||||
return std::string(xdg) + "/sxmo";
|
||||
}
|
||||
}
|
||||
const char* home = std::getenv("HOME");
|
||||
return std::string((home && home[0]) ? home : "/home/user") + "/.config/sxmo";
|
||||
return bananarchy::getHomeDirPath() + "/.config/sxmo";
|
||||
}
|
||||
|
||||
static int readRingerMode() {
|
||||
|
||||
Reference in new issue
Block a user