Fixed bug #1018855: Set the WM_CLASS property in X11.

bzr-revno: 2049
Fixes: https://launchpad.net/bugs/1018855
This commit is contained in:
Raoul Snyman 2012-08-31 21:45:16 +02:00
commit 558e344c51

View File

@ -35,6 +35,7 @@ logging and a plugin framework are contained within the openlp.core module.
import os import os
import sys import sys
import platform
import logging import logging
from optparse import OptionParser from optparse import OptionParser
from traceback import format_exception from traceback import format_exception
@ -266,6 +267,9 @@ def main(args=None):
qt_args.extend(['-style', options.style]) qt_args.extend(['-style', options.style])
# Throw the rest of the arguments at Qt, just in case. # Throw the rest of the arguments at Qt, just in case.
qt_args.extend(args) qt_args.extend(args)
# Bug #1018855: Set the WM_CLASS property in X11
if platform.system() not in ['Windows', 'Darwin']:
qt_args.append('OpenLP')
# Initialise the resources # Initialise the resources
qInitResources() qInitResources()
# Now create and actually run the application. # Now create and actually run the application.