little touchup and uninstall

This commit is contained in:
Marcos Pinto 2007-07-05 23:50:05 +00:00
parent 2c958c6cf5
commit fc8791deba
2 changed files with 18 additions and 3 deletions

View File

@ -2,7 +2,7 @@
# Makefile for Deluge
#
PREFIX = /usr
PREFIX = /usr/local
all:
@ -12,4 +12,17 @@ install:
python setup.py install --prefix=$(PREFIX)
clean:
python setup.py clean; rm -rf ./build; rm msgfmt.pyc
python setup.py clean
rm -rf ./build
rm msgfmt.pyc
find . -name *.pyc -exec rm {} \;
uninstall:
#find /usr -name deluge
-rm $(PREFIX)/bin/deluge
-rm -r $(PREFIX)/lib/python2.5/site-packages/deluge
-rm -r $(PREFIX)/lib/python2.5/site-packages/deluge-*.egg-info
-rm -r $(PREFIX)/share/deluge
-find ${PREFIX}/share/locale -name deluge.mo -exec rm {} \;
-rm $(PREFIX)/share/applications/deluge.desktop
-rm $(PREFIX)/share/pixmaps/deluge.xpm

View File

@ -1156,7 +1156,9 @@ class DelugeGTK:
dlg.vbox.pack_start(entry)
clip = gtk.clipboard_get(selection='PRIMARY')
text = clip.wait_for_text()
entry.set_text(text)
#watch out for an empty clipboard, TODO check for non url garbage
if text:
entry.set_text(text)
dlg.show_all()
result = dlg.run()
url = entry.get_text()