[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-list
Subject: Re: Fedora 37: Gnome 43: screensaver: How to lock screen from command line
From: Dario Lesca <d.lesca () solinos ! it>
Date: 2023-03-24 20:06:10
Message-ID: a17d29843089b4c970914711b55cd183a3913eb8.camel () solinos ! it
[Download RAW message or body]
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@lists.fedoraproject.org
> To unsubscribe send an email to users-leave@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
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic