forked from openlp/openlp
added vlc version to exception form
This commit is contained in:
parent
669da85b2b
commit
59a06905fc
@ -86,6 +86,11 @@ try:
|
|||||||
WEBKIT_VERSION = QtWebKit.qWebKitVersion()
|
WEBKIT_VERSION = QtWebKit.qWebKitVersion()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
WEBKIT_VERSION = u'-'
|
WEBKIT_VERSION = u'-'
|
||||||
|
try:
|
||||||
|
from openlp.core.ui.media.vlcplayer import VERSION
|
||||||
|
VLC_VERSION = VERSION
|
||||||
|
except ImportError:
|
||||||
|
VLC_VERSION = u'-'
|
||||||
|
|
||||||
|
|
||||||
from openlp.core.lib import UiStrings, Settings, translate
|
from openlp.core.lib import UiStrings, Settings, translate
|
||||||
@ -138,12 +143,15 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
|
|||||||
u'PyEnchant: %s\n' % ENCHANT_VERSION + \
|
u'PyEnchant: %s\n' % ENCHANT_VERSION + \
|
||||||
u'PySQLite: %s\n' % SQLITE_VERSION + \
|
u'PySQLite: %s\n' % SQLITE_VERSION + \
|
||||||
u'Mako: %s\n' % MAKO_VERSION + \
|
u'Mako: %s\n' % MAKO_VERSION + \
|
||||||
u'pyUNO bridge: %s\n' % UNO_VERSION
|
u'pyUNO bridge: %s\n' % UNO_VERSION + \
|
||||||
|
u'VLC: %s\n' % VLC_VERSION
|
||||||
if platform.system() == u'Linux':
|
if platform.system() == u'Linux':
|
||||||
if os.environ.get(u'KDE_FULL_SESSION') == u'true':
|
if os.environ.get(u'KDE_FULL_SESSION') == u'true':
|
||||||
system += u'Desktop: KDE SC\n'
|
system += u'Desktop: KDE SC\n'
|
||||||
elif os.environ.get(u'GNOME_DESKTOP_SESSION_ID'):
|
elif os.environ.get(u'GNOME_DESKTOP_SESSION_ID'):
|
||||||
system += u'Desktop: GNOME\n'
|
system += u'Desktop: GNOME\n'
|
||||||
|
elif os.environ.get(u'DESKTOP_SESSION') == u'xfce':
|
||||||
|
system += u'Desktop: Xfce\n'
|
||||||
return (openlp_version, description, traceback, system, libraries)
|
return (openlp_version, description, traceback, system, libraries)
|
||||||
|
|
||||||
def on_save_report_button_clicked(self):
|
def on_save_report_button_clicked(self):
|
||||||
@ -182,8 +190,7 @@ class ExceptionForm(QtGui.QDialog, Ui_ExceptionDialog):
|
|||||||
|
|
||||||
def on_send_report_button_clicked(self):
|
def on_send_report_button_clicked(self):
|
||||||
"""
|
"""
|
||||||
Opening systems default email client and inserting exception log and
|
Opening systems default email client and inserting exception log and system information.
|
||||||
system informations.
|
|
||||||
"""
|
"""
|
||||||
body = translate('OpenLP.ExceptionForm',
|
body = translate('OpenLP.ExceptionForm',
|
||||||
'*OpenLP Bug Report*\n'
|
'*OpenLP Bug Report*\n'
|
||||||
|
@ -58,12 +58,12 @@ except OSError, e:
|
|||||||
|
|
||||||
if VLC_AVAILABLE:
|
if VLC_AVAILABLE:
|
||||||
try:
|
try:
|
||||||
version = vlc.libvlc_get_version()
|
VERSION = vlc.libvlc_get_version()
|
||||||
except:
|
except:
|
||||||
version = u'0.0.0'
|
VERSION = u'0.0.0'
|
||||||
if LooseVersion(version) < LooseVersion('1.1.0'):
|
if LooseVersion(VERSION) < LooseVersion('1.1.0'):
|
||||||
VLC_AVAILABLE = False
|
VLC_AVAILABLE = False
|
||||||
log.debug(u'VLC could not be loaded: %s' % version)
|
log.debug(u'VLC could not be loaded, because the vlc version is to old: %s' % VERSION)
|
||||||
|
|
||||||
AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg']
|
AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user