--- src/gnome-btdownload.orig	Thu Jan  8 22:13:40 2004
+++ src/gnome-btdownload	Thu Jan  8 22:14:05 2004
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import BitTorrent.download, BitTorrent.bencode
 import os.path, threading, sys, time, re
@@ -49,7 +49,7 @@
 if not locate_file or not get_url:
 	try:
 		def fallback_locate_attempt_prefixes(path):
-			prefixes = ['', 'usr/', 'usr/local/']
+			prefixes = ['', '%%X11PREFIX%%/', 'usr/', 'usr/local/']
 
 			# Try them locally
 			for prefix in prefixes:
