diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-25 22:17:25 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-04-25 22:17:25 -0700 |
commit | 567f59d3f8189b92bc46e2af1260f9340f462bdb (patch) | |
tree | 616cc330338ffbf010d9e404190bef0ebc08aaa1 /launchd/user_startx | |
parent | 75a969b884296439fb84ca2be8f77d718d7da1e6 (diff) |
launchd: Reorganized layout of launchd sources
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'launchd/user_startx')
-rw-r--r-- | launchd/user_startx/.gitignore | 1 | ||||
-rw-r--r-- | launchd/user_startx/Makefile.am | 39 | ||||
-rw-r--r-- | launchd/user_startx/startx.plist.cpp | 24 |
3 files changed, 64 insertions, 0 deletions
diff --git a/launchd/user_startx/.gitignore b/launchd/user_startx/.gitignore new file mode 100644 index 0000000..60802d7 --- /dev/null +++ b/launchd/user_startx/.gitignore @@ -0,0 +1 @@ +*.startx.plist* diff --git a/launchd/user_startx/Makefile.am b/launchd/user_startx/Makefile.am new file mode 100644 index 0000000..9e4e4d9 --- /dev/null +++ b/launchd/user_startx/Makefile.am @@ -0,0 +1,39 @@ +# +# Copyright 2005 Red Hat, Inc. +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of Red Hat not be used in +# advertising or publicity pertaining to distribution of the software without +# specific, written prior permission. Red Hat makes no +# representations about the suitability of this software for any purpose. It +# is provided "as is" without express or implied warranty. +# +# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +# PERFORMANCE OF THIS SOFTWARE. + +include $(top_srcdir)/cpprules.in + +xinitrcdir = $(XINITDIR) + +CPP_FILES_FLAGS = \ + -DXINITDIR=$(XINITDIR) $(PROGCPPDEFS) -DLIBDIR=$(libdir) \ + -DSHELL_CMD=$(SHELL_CMD) $(STARTX_COOKIE_FLAGS) \ + -D__libexecdir__="$(libexecdir)" \ + -D__bindir__="$(bindir)" \ + -DLAUNCHD_ID_PREFIX="$(launchdidprefix)" + +$(launchdidprefix).startx.plist.cpp: startx.plist.cpp + cp $< $@ + +launchagents_PRE = $(launchdidprefix).startx.plist.cpp +launchagents_DATA = $(launchagents_PRE:plist.cpp=plist) + +EXTRA_DIST = startx.plist.cpp diff --git a/launchd/user_startx/startx.plist.cpp b/launchd/user_startx/startx.plist.cpp new file mode 100644 index 0000000..bd4c9e9 --- /dev/null +++ b/launchd/user_startx/startx.plist.cpp @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>Label</key> + <string>LAUNCHD_ID_PREFIX.startx</string> + <key>ProgramArguments</key> + <array> + <string>__bindir__/startx</string> + </array> + <key>Sockets</key> + <dict> + <key>LAUNCHD_ID_PREFIX:0</key> + <dict> + <key>SecureSocketWithKey</key> + <string>DISPLAY</string> + </dict> + </dict> + <key>ServiceIPC</key> + <true/> + <key>EnableTransactions</key> + <true/> +</dict> +</plist> |