17810N/A gboolean session_started = FALSE;
17810N/A bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
17810N/A+ if (getzoneid () == 0 && /* global zone */
17810N/A+ tx_is_multi_label_session () &&
17810N/A+ tx_is_non_global_display_zone ()) {
17810N/A+ command = g_strdup_printf ("0:%s", g_strjoinv (" ", argv));
17810N/A+ tx_proxy_app_launch (command);
17810N/A local_id = (gchar *) g_getenv ("DESKTOP_STARTUP_ID");
17810N/A if (local_id != NULL && *local_id != '\0') {
17810N/A+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
17810N/A+ * Use is subject to license terms.
17810N/A+#define ATOM "_LABEL_EXEC_COMMAND"
17810N/A+tx_is_multi_label_session (void)
17810N/A+ if (getenv ("TRUSTED_SESSION")) {
17810N/A+ return trusted ? TRUE : FALSE;
17810N/A+tx_is_non_global_display_zone (void)
17810N/A+ unsigned char *prop_data = NULL;
17810N/A+ utf8_string = XInternAtom (xdpy, "UTF8_STRING", FALSE);
17810N/A+ root = DefaultRootWindow (xdpy);
17810N/A+ atom = XInternAtom (xdpy, "NAUTILUS_ACTIVE_DESKTOP_ID", FALSE);
17810N/A+ XGetWindowProperty (xdpy, root, atom, 0L, (long)1024, FALSE,
17810N/A+ utf8_string, &type, &format, &nitems,
17810N/A+ &bytesafter, (unsigned char **)&prop_data);
17810N/A+ zoneid = strchr (prop_data, '_') + 1;
17810N/A+ if (strncmp (zoneid, "0", 1) == 0 ){
17810N/A+tx_proxy_app_launch (char *command)
17810N/A+ utf8_string = XInternAtom (xdpy, "UTF8_STRING", FALSE);
17810N/A+ root = DefaultRootWindow (xdpy);
17810N/A+ atom = XInternAtom (xdpy, ATOM, FALSE);
17810N/A+ XChangeProperty (xdpy, root, atom, utf8_string, 8, PropModeReplace,
17810N/A+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
17810N/A+ * Use is subject to license terms.
17810N/A+gboolean tx_is_multi_label_session (void);
17810N/A+gboolean tx_is_non_global_display_zone (void);
17810N/A+void tx_proxy_app_launch (char *command);