BuildRequires: pkgconfig(libsystemd-daemon)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(buxton2)
BuildRequires: pkgconfig(security-manager)
BuildRequires: pkgconfig(aul)
BuildRequires: pkgconfig(ttrace)
#include <bundle_internal.h>
#include <aul.h>
#include <security-manager.h>
+#include <buxton2.h>
#include "launchpad_common.h"
#include "launchpad.h"
bundle_free(__bundle);
}
+static void __buxton_cb(int status, const struct buxton_layer *layer,
+ const char *key, const struct buxton_value *val,
+ void *user_data)
+{
+ _D("buxton_update_client_label result : %d", status);
+}
+
static int __prepare_exec(const char *appid, const char *app_path,
const char *pkg_type, int type)
{
const char *file_name = NULL;
char process_name[AUL_PR_NAME] = { 0, };
int ret;
+ struct buxton_client *bxt_cli;
__preexec_run(pkg_type, appid, app_path);
return -1;
}
+ ret = buxton_open(&bxt_cli, NULL, NULL);
+ if (ret != 0) {
+ _E("buxton_open() failed");
+ return -1;
+ }
+ ret = buxton_update_client_label(bxt_cli, __buxton_cb, NULL);
+ if (ret != 0) {
+ _E("buxton_update_client_label() failed");
+ return -1;
+ }
+ buxton_close(bxt_cli);
+
/*
* SET DUMPABLE - for coredump
* This dumpable flag should be set after