Skip to content
Snippets Groups Projects
Commit 6ff5643c authored by nkour's avatar nkour
Browse files

autodetect for links now should work

parent 6e61913e
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,8 @@ class Config:
'always_english_wikipedia': [opt_bool, False],
'use_dbus': [opt_bool, True], # allow control via dbus service
'send_receive_chat_state_notifications': [opt_bool, True],
'print_ichat_every_foo_minutes': [opt_int, 5], # default is every 5 minutes
'autodetect_browser_mailer': [opt_bool, True],
'print_ichat_every_foo_minutes': [opt_int, 5],
'confirm_close_muc': [opt_bool, True], # confirm closing MUC window
'notify_on_file_complete': [opt_bool, True], # notif. on file complete
'file_transfers_port': [opt_int, 28011], # port, used for file transfers
......
......@@ -365,7 +365,7 @@ class PreferencesWindow:
self.links_open_with_combobox = self.xml.get_widget('links_open_with_combobox')
if gajim.config.get('autodetect_browser_mailer'):
self.links_open_with_combobox.set_active(0)
gtkgui_helpers.plugin.autodetect_browser_mailer()
gtkgui_helpers.autodetect_browser_mailer()
# autodetect_browser_mailer is now False.
# so user has 'Always Use GNOME/KDE' or Custom
elif gajim.config.get('openwith') == 'gnome-open':
......
......@@ -1016,7 +1016,7 @@ class Interface:
if gajim.config.get('autodetect_browser_mailer'):
gtkgui_helpers.plugin.autodetect_browser_mailer()
gtkgui_helpers.autodetect_browser_mailer()
if gajim.verbose:
gajim.log.setLevel(gajim.logging.DEBUG)
......
......@@ -10138,7 +10138,8 @@ Status message</property>
<child>
<widget class="GtkEventBox" id="gpg_eventbox">
<property name="visible">True</property>
<property name="visible_window">False</property>
<property name="tooltip" translatable="yes">GPG Encryption</property>
<property name="visible_window">True</property>
<property name="above_child">False</property>
 
<child>
......
......@@ -22,9 +22,14 @@
import xml.sax.saxutils
import gtk
import os
from common import i18n
i18n.init()
_ = i18n._
from common import gajim
def convert_bytes(string):
suffix = ''
......@@ -60,7 +65,7 @@ def escape_for_pango_markup(string):
return escaped_str
def autodetect_browser_mailer(self):
def autodetect_browser_mailer():
#recognize the environment for appropriate browser/mailer
if os.path.isdir('/proc'):
# under Linux: checking if 'gnome-session' or
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment