--- src/gnome-btdownload.orig	Sun Nov  7 20:26:43 2004
+++ src/gnome-btdownload	Sun Nov  7 20:28:36 2004
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # BitTorrent related modules.
 import BitTorrent.download, BitTorrent.bencode
@@ -72,7 +72,7 @@
 # Fallback wrapper
 if not locate_file:
 	def fallback_locate_attempt_prefixes(path):
-		prefixes = ['', 'usr/', 'usr/local/']
+		prefixes = ['', '%%X11PREFIX%%/', 'usr/', 'usr/local/']
 
 		# Try them locally
 		for prefix in prefixes:
