Make APP_ID match real application ID
The application advertises itself as io.github.pwr_solaar.solaar through its appdata file, so name the application this way too. This fixes this warning in Flatpak: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown
This commit is contained in:
parent
693db1d541
commit
b3cfd0f762
|
@ -187,7 +187,7 @@ def run(receivers, args, find_receiver, find_device):
|
|||
_print_setting(setting)
|
||||
return
|
||||
|
||||
APP_ID = 'io.github.pwr.solaar'
|
||||
APP_ID = 'io.github.pwr_solaar.solaar'
|
||||
application = Gtk.Application.new(APP_ID, Gio.ApplicationFlags.HANDLES_COMMAND_LINE)
|
||||
application.register()
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ def _shutdown(app, shutdown_hook):
|
|||
def run_loop(startup_hook, shutdown_hook, use_tray, show_window):
|
||||
assert use_tray or show_window, 'need either tray or visible window'
|
||||
# from gi.repository.Gio import ApplicationFlags as _ApplicationFlags
|
||||
APP_ID = 'io.github.pwr.solaar'
|
||||
APP_ID = 'io.github.pwr_solaar.solaar'
|
||||
application = Gtk.Application.new(APP_ID, Gio.ApplicationFlags.HANDLES_COMMAND_LINE)
|
||||
|
||||
application.connect('startup', lambda app, startup_hook: _startup(app, startup_hook, use_tray, show_window), startup_hook)
|
||||
|
|
Loading…
Reference in New Issue