qubes-desktop-run: don't crash on Debian wheezy (glib < 2.36)

Gio.DesktopAppInfo.get_boolean was introduced in glib 2.36. Instead of
crashing simply do not support DBusActivatable there. There is no such
application in default Debian wheezy template anyway.
このコミットが含まれているのは:
Marek Marczykowski-Górecki 2015-08-28 02:02:19 +02:00
コミット 0b7ade11b8
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 063938BA42CFA724

ファイルの表示

@ -6,6 +6,7 @@ import dbus
def launch(desktop, *files):
launcher = Gio.DesktopAppInfo.new_from_filename(desktop)
if hasattr(launcher, 'get_boolean'):
activatable = launcher.get_boolean('DBusActivatable')
if activatable:
bus = dbus.SessionBus()