add send info pref so we can get a better idea of our users
This commit is contained in:
parent
bacdec3e76
commit
48bdbbb060
File diff suppressed because it is too large
Load Diff
|
@ -63,6 +63,7 @@ class PreferencesDlg:
|
|||
self.glade.get_widget("combo_dht_proxy_type").set_active(self.preferences.get("dht_proxy_type"))
|
||||
self.glade.get_widget("combo_tracker_proxy_type").set_active(self.preferences.get("tracker_proxy_type"))
|
||||
self.glade.get_widget("combo_web_proxy_type").set_active(self.preferences.get("web_proxy_type"))
|
||||
self.glade.get_widget("chk_send_info").set_active(self.preferences.get("send_info"))
|
||||
self.glade.get_widget("chk_pref_rc4").set_active(self.preferences.get("pref_rc4"))
|
||||
self.glade.get_widget("chk_peer_proxy").set_active(self.preferences.get("peer_proxy"))
|
||||
self.glade.get_widget("chk_tracker_proxy").set_active(self.preferences.get("tracker_proxy"))
|
||||
|
@ -155,6 +156,7 @@ class PreferencesDlg:
|
|||
self.preferences.set("encout_state", self.glade.get_widget("combo_encout").get_active())
|
||||
self.preferences.set("enclevel_type", self.glade.get_widget("combo_enclevel").get_active())
|
||||
self.preferences.set("peer_proxy_type", self.glade.get_widget("combo_peer_proxy_type").get_active())
|
||||
self.preferences.set("send_info", self.glade.get_widget("chk_send_info").get_active())
|
||||
self.preferences.set("pref_rc4", self.glade.get_widget("chk_pref_rc4").get_active())
|
||||
self.preferences.set("peer_proxy", self.glade.get_widget("chk_peer_proxy").get_active())
|
||||
self.preferences.set("tracker_proxy", self.glade.get_widget("chk_tracker_proxy").get_active())
|
||||
|
|
|
@ -114,7 +114,6 @@ class FilesBaseManager(object):
|
|||
|
||||
self.file_store.set_value(self.file_store.get_iter(child_path), 2,
|
||||
priority)
|
||||
|
||||
self.update_priorities()
|
||||
|
||||
def mouse_clicked(self, widget, event):
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import urllib
|
||||
import platform
|
||||
import common
|
||||
import sys
|
||||
|
||||
py_version = sys.version[:3]
|
||||
|
||||
urllib.urlopen("http://download.deluge-torrent.org/stats.php?processor=" + \
|
||||
platform.machine() + "&python=" + platform.python_version() \
|
||||
+ "&os=" + platform.system())
|
||||
|
||||
f = open(common.CONFIG_DIR + '/infosent', 'w')
|
||||
print "writing file infosent"
|
||||
f.write("")
|
||||
f.close
|
|
@ -120,9 +120,23 @@ class DelugeGTK:
|
|||
file = common.INSTALL_PREFIX + '/lib/python' + py_version + '/site-packages/deluge/update.py'
|
||||
os.spawnlp(os.P_NOWAIT, 'python', 'python', file, common.PROGRAM_VERSION)
|
||||
|
||||
def send_info():
|
||||
import sys
|
||||
py_version = sys.version[:3]
|
||||
#check if we already sent the info
|
||||
if os.path.exists(common.CONFIG_DIR + '/infosent'):
|
||||
pass
|
||||
#if we havent, let's do so
|
||||
else:
|
||||
file = common.INSTALL_PREFIX + '/lib/python' + py_version + '/site-packages/deluge/info.py'
|
||||
os.spawnlp(os.P_NOWAIT, 'python', 'python', file, common.PROGRAM_VERSION)
|
||||
|
||||
if self.config.get("new_releases"):
|
||||
new_release_check()
|
||||
|
||||
if self.config.get("send_info"):
|
||||
send_info()
|
||||
|
||||
signal.signal(signal.SIGINT, self.manager.quit)
|
||||
signal.signal(signal.SIGTERM, self.manager.quit)
|
||||
signal.signal(signal.SIGHUP, self.manager.quit)
|
||||
|
|
|
@ -40,6 +40,7 @@ import common
|
|||
import os.path
|
||||
|
||||
DEFAULT_PREFS = {
|
||||
"send_info" : True,
|
||||
"auto_end_seeding" : False,
|
||||
"auto_seed_ratio" : 0,
|
||||
"close_to_tray" : False,
|
||||
|
|
Loading…
Reference in New Issue