#include <sys/reboot.h>
#include <vconf.h>
+#include <tzplatform_config.h>
#include <klay/process.h>
#include <klay/file-user.h>
#include <klay/filesystem.h>
}
void showProgressUI(const std::string type) {
+ ::tzplatform_set_user(::tzplatform_getuid(TZ_SYS_DEFAULT_USER));
+ std::string defaultUserHome(::tzplatform_getenv(TZ_USER_HOME));
+ ::tzplatform_reset_user();
+
+ ::tzplatform_set_user(::getuid());
+ std::string currentUserHome(::tzplatform_getenv(TZ_USER_HOME));
+ ::tzplatform_reset_user();
+
+ INFO("Home directory : " + currentUserHome);
+
+ runtime::File shareDirectory(currentUserHome + "/share");
+ if (!shareDirectory.exists()) {
+ shareDirectory.makeDirectory();
+ }
+
+ runtime::File elmConfigDir(currentUserHome + "/share/.elementary");
+ if (!elmConfigDir.exists()) {
+ runtime::File defaultElmConfigDir(defaultUserHome + "/share/.elementary");
+ defaultElmConfigDir.copyTo(shareDirectory.getPath());
+ }
+
std::vector<std::string> args = {
"ode", "progress", type, "Internal"
};
ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=~CAP_MAC_ADMIN
CapabilityBoundingSet=~CAP_MAC_OVERRIDE
-CapabilityBoundingSet=~CAP_DAC_OVERRIDE
EnvironmentFile=/run/tizen-system-env
EnvironmentFile=/run/xdg-root-env
return EXIT_FAILURE;
}
+ char *lang = vconf_get_str(VCONFKEY_LANGSET);
+ setlocale(LC_ALL, lang);
+ if (lang) {
+ free(lang);
+ }
+ bindtextdomain("ode", "/usr/apps/org.tizen.ode/res/locale");
+
elm_init(argc, argv);
- ui_app_lang_changed(NULL, NULL);
create_base_window();
if (!strncmp(argv[1], "progress", sizeof("progress"))) {