Created
August 26, 2009 19:59
-
-
Save oliver/175779 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Start Gedit in new process (by setting TMPDIR to different value) | |
export TMPDIR=/tmp/mgedit/ | |
mkdir -p $TMPDIR | |
NEWTMPDIR=`mktemp -d -t mgedit.XXXXXXXXXX` || exit 1 | |
export TMPDIR=$NEWTMPDIR | |
/usr/bin/gedit $@ &> $TMPDIR/gedit.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment