From f38cac838f5d7d9facf3d335767e5e5339fc04b3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 29 Oct 2012 10:09:01 +0100 Subject: [PATCH] use our home as default incoming folder --- file_sharing/fshare.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/file_sharing/fshare.py b/file_sharing/fshare.py index c865c15..1bbe5bd 100644 --- a/file_sharing/fshare.py +++ b/file_sharing/fshare.py @@ -2,6 +2,7 @@ ## import database import gtk +import os import base64 import urllib2 from plugins import GajimPlugin @@ -27,7 +28,8 @@ class FileSharePlugin(GajimPlugin): self.description = _('This plugin allows you to share folders'+ ' with a peer using jingle file transfer.') self.config_dialog = None - self.config_default_values = {'incoming_dir': ('/home/', '')} + home_path = os.path.expanduser('~/') + self.config_default_values = {'incoming_dir': (home_path, '')} # Create one protocol handler per account accounts = gajim.contacts.get_accounts() for account in gajim.contacts.get_accounts():