Fix start of history manager from gajim
This commit is contained in:
parent
674012042a
commit
ab041963b1
|
@ -63,15 +63,8 @@ class AppActions():
|
||||||
interface.instances['accounts'] = config.AccountsWindow()
|
interface.instances['accounts'] = config.AccountsWindow()
|
||||||
|
|
||||||
def on_history_manager(self, action, param):
|
def on_history_manager(self, action, param):
|
||||||
config_path = '-c %s' % gajim.gajimpaths.data_root
|
from gajim.history_manager import HistoryManager
|
||||||
posix = os.name != 'nt'
|
HistoryManager()
|
||||||
if os.path.exists('history_manager.exe'): # Windows
|
|
||||||
helpers.exec_command('history_manager.exe %s' % config_path,
|
|
||||||
posix=posix)
|
|
||||||
else: # Linux or running from Git
|
|
||||||
helpers.exec_command(
|
|
||||||
'%s history_manager.py %s' % (sys.executable, config_path),
|
|
||||||
posix=posix)
|
|
||||||
|
|
||||||
def on_manage_bookmarks(self, action, param):
|
def on_manage_bookmarks(self, action, param):
|
||||||
config.ManageBookmarksWindow()
|
config.ManageBookmarksWindow()
|
||||||
|
|
Loading…
Reference in New Issue