Bug 1728995 - Failed to detect screen is locked by dbus or loginctl utility when click Lock menu quickly after login
Summary: Failed to detect screen is locked by dbus or loginctl utility when click Lock...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: dbus
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: David King
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-11 07:37 UTC by VMwareEng
Modified: 2020-11-05 17:48 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)
test.sh and screen-status-monitor.desktop (676 bytes, application/zip)
2019-07-11 07:37 UTC, VMwareEng
no flags Details

Description VMwareEng 2019-07-11 07:37:25 UTC
Created attachment 1589324 [details]
test.sh and screen-status-monitor.desktop

Description of problem: 
Click Lock menu very soon after login, the screen is locked as expected. But in this case, there is no org.gnome.ScreenSaver related dbus generated, and less way to report screen is locked.

Version-Release number of selected component (if applicable): All Redhat version, I tested at Redhat6.10, and Redhat7.6


How reproducible: Click Lock system menu very quickly after login.

Steps to Reproduce:
1. Put attached test.sh under /tmp/test.sh
2. Put attached screen-status-monitor.desktop to /etc/xdg/autostart/screen-status-monitor.desktop
3. Click Lock menu very quickly after login
4. Verify /tmp/monitor, there is no ScreenSaver related dbus in it
5. Verify /tmp/result, the first "true/false" is to query dbus org.gnome.screensaver.GetAcitve, the second is to query session lock status from loginctl utility, they both indicate "unlocked" status.

Actual results:
In most of time, the query result is "unlocked" status

Expected results:
the query result is "locked" status

Additional info:


Note You need to log in before you can comment on or make changes to this bug.