From c4e84cb158a656fffecd4b8db436d895b69412cf Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Mon, 7 Dec 2009 10:20:53 +0000 Subject: [PATCH] bin/emacsclient-hack: Open the window on the right display. Organization: Straylight/Edgeware From: Mark Wooding By default, Emacsclient doesn't open frames on the client's display. This grotty shim program does the right magic, by simply passing the appropriate command-line option. It's intended for use in `.desktop' files, because they don't allow shell expansion of environment variables in the right way. Silly rabbits. --- bin/emacsclient-hack | 2 ++ setup | 1 + 2 files changed, 3 insertions(+) create mode 100755 bin/emacsclient-hack diff --git a/bin/emacsclient-hack b/bin/emacsclient-hack new file mode 100755 index 0000000..8379edb --- /dev/null +++ b/bin/emacsclient-hack @@ -0,0 +1,2 @@ +#! /bin/sh -e +exec emacsclient ${DISPLAY+--display "$DISPLAY"} "$@" diff --git a/setup b/setup index 1bc13f7..e48ce2e 100755 --- a/setup +++ b/setup @@ -212,6 +212,7 @@ scripts=" mdw-pager mdw-conf mdw-build + emacsclient-hack movemail-hack emerge-hack lesspipe.sh -- [mdw]