patches/yelp-05-trusted-extensions.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17059 c0026e52abd0
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17059
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     1
diff -urN yelp.orig/src/Makefile.am yelp.new/src/Makefile.am
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     2
--- yelp.orig/src/Makefile.am	2009-06-12 11:32:27.311453656 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     3
+++ yelp.new/src/Makefile.am	2009-06-12 11:42:32.735084451 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     4
@@ -28,7 +28,8 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     5
 	yelp-info-parser.c 	yelp-info-parser.h		\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     6
 	gtkentryaction.c	gtkentryaction.h		\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     7
 	yelp-search.c		yelp-search.h			\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     8
-	yelp-search-parser.c 	yelp-search-parser.h
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
     9
+	yelp-search-parser.c 	yelp-search-parser.h		\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    10
+	yelp-tx.c		yelp-tx.h
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    11
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    12
 YELP_DEFINES =								\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    13
 	-DG_LOG_DOMAIN=\"Yelp\"						\
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    14
diff -urN yelp.orig/src/yelp-main.c yelp.new/src/yelp-main.c
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    15
--- yelp.orig/src/yelp-main.c	2009-06-12 11:32:27.316918730 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    16
+++ yelp.new/src/yelp-main.c	2009-06-12 15:02:32.145926917 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    17
@@ -30,6 +30,7 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    18
 #include <dbus/dbus-glib-bindings.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    19
 #include <string.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    20
 #include <stdlib.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    21
+#include <zone.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    22
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    23
 #ifdef WITH_SMCLIENT
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    24
 #include "eggsmclient.h"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    25
@@ -38,6 +39,7 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    26
 #include "yelp-window.h"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    27
 #include "yelp-base.h"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    28
 #include "yelp-html.h"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    29
+#include "yelp-tx.h"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    30
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    31
 static gchar       *cache_dir;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    32
 static gchar       *open_urls;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    33
@@ -337,6 +339,7 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    34
 	gboolean       session_started = FALSE;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    35
 	gchar *local_id;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    36
 	GOptionContext *context;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    37
+	char *command;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    38
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    39
 	g_thread_init(NULL);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    40
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    41
@@ -344,6 +347,15 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    42
         bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    43
 	textdomain(GETTEXT_PACKAGE);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    44
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    45
+	if (getzoneid () == 0 && /* global zone */
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    46
+	    tx_is_multi_label_session () &&
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    47
+	    tx_is_non_global_display_zone ()) {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    48
+		command = g_strdup_printf  ("0:%s", g_strjoinv (" ", argv));
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    49
+		tx_proxy_app_launch (command);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    50
+		g_free (command);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    51
+		return 0;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    52
+	}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    53
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    54
 	local_id = (gchar *) g_getenv ("DESKTOP_STARTUP_ID");
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    55
 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    56
 	if (local_id != NULL && *local_id != '\0') {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    57
diff -urN yelp.orig/src/yelp-tx.c yelp.new/src/yelp-tx.c
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    58
--- yelp.orig/src/yelp-tx.c	1970-01-01 01:00:00.000000000 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    59
+++ yelp.new/src/yelp-tx.c	2009-06-15 08:43:33.465438182 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    60
@@ -0,0 +1,99 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    61
+/*
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    62
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    63
+ * Use is subject to license terms.
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    64
+ */
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    65
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    66
+#include <config.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    67
+#include <gdk/gdk.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    68
+#include <gdk/gdkx.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    69
+#include <X11/Xlib.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    70
+#include <stdlib.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    71
+#include <strings.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    72
+#include <user_attr.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    73
+#include <sys/types.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    74
+#include <unistd.h>
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    75
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    76
+#define ATOM "_LABEL_EXEC_COMMAND"
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    77
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    78
+gboolean
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    79
+tx_is_multi_label_session (void)
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    80
+{
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    81
+	static int trusted = -1;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    82
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    83
+	if (trusted < 0) {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    84
+		if (getenv ("TRUSTED_SESSION")) {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    85
+			trusted = 1;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    86
+		} else {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    87
+			trusted = 0;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    88
+		}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    89
+	}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    90
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    91
+	return trusted ? TRUE : FALSE;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    92
+}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    93
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    94
+gboolean
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    95
+tx_is_non_global_display_zone (void)
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    96
+{
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    97
+	char *zoneid;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    98
+	Display *xdpy;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
    99
+	Window root;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   100
+	Atom atom, utf8_string;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   101
+	unsigned long nitems;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   102
+	unsigned long bytesafter;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   103
+	unsigned char *prop_data = NULL;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   104
+	Atom type = None;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   105
+	int format;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   106
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   107
+	xdpy = XOpenDisplay (NULL);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   108
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   109
+	utf8_string = XInternAtom (xdpy, "UTF8_STRING", FALSE);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   110
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   111
+	root = DefaultRootWindow (xdpy);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   112
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   113
+	atom = XInternAtom (xdpy, "NAUTILUS_ACTIVE_DESKTOP_ID", FALSE);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   114
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   115
+	gdk_error_trap_push ();
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   116
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   117
+	XGetWindowProperty (xdpy, root, atom, 0L, (long)1024, FALSE, 
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   118
+				utf8_string, &type, &format, &nitems,
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   119
+				&bytesafter, (unsigned char **)&prop_data);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   120
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   121
+	gdk_error_trap_pop ();
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   122
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   123
+	zoneid = strchr (prop_data, '_') + 1;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   124
+	if (strncmp (zoneid, "0", 1) == 0 ){
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   125
+		return FALSE;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   126
+	} else {
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   127
+		return TRUE;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   128
+	}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   129
+}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   130
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   131
+void
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   132
+tx_proxy_app_launch (char *command)
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   133
+{
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   134
+	Display *xdpy;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   135
+	Window root;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   136
+	Atom atom, utf8_string;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   137
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   138
+	if (!command) return;
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   139
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   140
+	xdpy = XOpenDisplay (NULL);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   141
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   142
+	utf8_string = XInternAtom (xdpy, "UTF8_STRING", FALSE);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   143
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   144
+	root = DefaultRootWindow (xdpy);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   145
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   146
+	atom = XInternAtom (xdpy, ATOM, FALSE);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   147
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   148
+	gdk_error_trap_push ();
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   149
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   150
+	XChangeProperty (xdpy, root, atom, utf8_string, 8, PropModeReplace,
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   151
+			 command, strlen (command));
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   152
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   153
+	XSync (xdpy, False);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   154
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   155
+	gdk_error_trap_pop ();
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   156
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   157
+	XCloseDisplay (xdpy);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   158
+}
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   159
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   160
diff -urN yelp.orig/src/yelp-tx.h yelp.new/src/yelp-tx.h
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   161
--- yelp.orig/src/yelp-tx.h	1970-01-01 01:00:00.000000000 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   162
+++ yelp.new/src/yelp-tx.h	2009-06-15 08:41:35.454570771 +0100
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   163
@@ -0,0 +1,9 @@
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   164
+/*
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   165
+ * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   166
+ * Use is subject to license terms.
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   167
+ */
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   168
+
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   169
+gboolean tx_is_multi_label_session (void);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   170
+gboolean tx_is_non_global_display_zone (void);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   171
+void tx_proxy_app_launch (char *command);
c0026e52abd0 2009-12-01 Ke Wang <[email protected]>
wangke
parents:
diff changeset
   172
+