Skip to content

Instantly share code, notes, and snippets.

@oliver
Created August 26, 2009 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliver/175779 to your computer and use it in GitHub Desktop.
Save oliver/175779 to your computer and use it in GitHub Desktop.
#!/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