Add NeoUI passcode configurator, duress mode profile, and Bluetooth OBEX UI

This commit is contained in:
Luxferre committed 2026-10-30 19:28:31 +02:00
1 parent 51a1a91d42
commit 62ac46e498
100 files changed
+2736 -240

No files matched your search

+7 -6
View File
@@ -61,13 +61,14 @@ void setTorchState(bool on) {
}
std::string getPicturesDir() {
const char* xdg = std::getenv("XDG_PICTURES_DIR");
if (xdg && xdg[0]) {
::mkdir(xdg, 0755);
return xdg;
if (!isDuressMode()) {
const char* xdg = std::getenv("XDG_PICTURES_DIR");
if (xdg && xdg[0]) {
::mkdir(xdg, 0755);
return xdg;
}
}
const char* home = std::getenv("HOME");
std::string dir = std::string(home && home[0] ? home : "/home/user") + "/Pictures";
std::string dir = getHomeDirPath() + "/Pictures";
::mkdir(dir.c_str(), 0755);
return dir;
}