Note to testers, you may need to re-enroll prints with certain devices. On the plus side, the enrolled prints for those devices should be rendered useless, which is important as there was a high likelyhood of them causing false positives.
The primary test for this is to run "systemd --user" and check the gnome-launched-* units. Some of these will be from gnome-shell, but with this patch merged, you will see that all of them
There should always be some with this patch (for XDG autostart applications). Also, when running "systemd --user show UNIT" you will see that all of them have "PartOf=graphical-session.target" set.
Thanks, works great!
Note that the following python script can be used to test the new API:
#! /usr/bin/env python3 import os import time import sys import gi gi.require_version('GnomeDesktop', '3.0') from gi.repository import GnomeDesktop, GLib def cb(src, res): GnomeDesktop.start_systemd_scope_finish(res) loop.quit() pid = os.fork() if pid: GnomeDesktop.start_systemd_scope("forked!myself?ä", pid, None, None, None, cb) else: time.sleep(100) sys.exit(0) loop = GLib.MainLoop(GLib.main_context_default()) loop.run()
On systemd, you will get a new "gnome-launched-forked_myself_a-X.scope" with a python process that just hangs there for 100 seconds before quitting, while the main process quits immediately.