Skip to content

Commit d818802

Browse files
committed
Set programe name for scp-dbus-service as well
scp-dbus-service can be D-Bus activated, that means that the program name is never set meaning that the icon and the fancy name in the window list is never set. This completes the fix for bug #53
1 parent 3fee7c6 commit d818802

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scp-dbus-service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
## along with this program; if not, write to the Free Software
2121
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2222

23-
import dbus.service
2423
import gi
24+
import dbus.service
2525
from gi.repository import GObject
2626
from gi.repository import GLib
2727
gi.require_version('Gdk', '3.0')
@@ -55,6 +55,9 @@
5555
g_ppds = None
5656
g_killtimer = None
5757

58+
#set program name
59+
GLib.set_prgname("system-config-printer")
60+
5861
class FetchedPPDs(GObject.GObject):
5962
__gsignals__ = {
6063
'ready': (GObject.SIGNAL_RUN_LAST, None, ()),

0 commit comments

Comments
 (0)