%endif
systemctl restart cynara.service
+if [ $1 = 2 ]; then
+ # update - workaround for ditry user-session service restart, only for platform development case
+ echo "WARNING: askuser-notification updated; to ensure system stability & proper operation, reboot your device"
+fi
%preun
printf("1. Run as a client (%s -c) to trigger popups in the askuser-notification daemon.\n", programName);
printf("2. Run one part as a client (%s -c) and other one as a server (%s -s).\n",
programName, programName);
- printf("If you want to run this program as a root you need to create /var/run/user_ext/0 folder.\n");
+ printf("If you want to run this program as a root you need to create /run/user/0 folder.\n");
printf("To run this program in context of some Tizen's application, type in the console:\n");
printf("#echo <SMACK label of the application> > /proc/self/attr/current\n");
printf("#su - <user name>\n\n");
}
catch (const ConnectionException &e) {
printf("Connection exception occured during initialization: %s, exiting.\n", e.what());
- printf("Check if the /var/run/user_ext/%u directory exists.\n", geteuid());
+ printf("Check if the /run/user/%u directory exists.\n", geteuid());
exit(EXIT_FAILURE);
}
catch (const std::exception &e) {
return socketPath;
}
-const std::string userPathFormatPrefix = "/run/user_ext/";
+const std::string userPathFormatPrefix = "/run/user/";
const std::string userPathFormatSuffix = "/askuser-notification.socket";
std::string getUserSocketPath(uid_t uid) {
#include "config.h"
namespace {
-const std::string USER_EXT_PATH("/run/user_ext/");
+const std::string USER_EXT_PATH("/run/user/");
const std::string SOCKET_STREAM_NAME("/askuser-notification-stream.socket");
const std::string SOCKET_DGRAM_NAME("/askuser-notification-datagram.socket");
} // namespace anonymous