Found it, by myself
https://notes.zerodogg.org/GNOME/lock-unlock-cli/
# Lock
dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call --print-reply
--reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.SetActive boolean:true
# Unlock
dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call --print-reply
--reply-timeout=20000 /org/gnome/ScreenSaver org.gnome.ScreenSaver.SetActive
boolean:false
Dario
Il giorno gio, 23/03/2023 alle 17.13 +0100, Dario Lesca ha scritto:
> I want start screen saver and lock screen from command line.
>
> What is the new method into Gnome 43, since "gnome-screensaver-
> command
> -l" no longer exists?
>
> Thanks
>
> --
> Dario Lesca
> (inviato dal mio Linux Fedora 37 Workstation)
>
>
>
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
>
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines:
>
https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
>
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it:
>
https://pagure.io/fedora-infrastructure/new_issue