Opened 7 years ago

Closed 7 years ago

#11490 closed Bug Report - General (Invalid)

checklogin.sh does not work correctly with xfce4 (wiki: ACPI_Wakeup)

Reported by: qwertypoke <tuomas.jantti@…> Owned by: Robert Kulagowski
Priority: minor Milestone: unknown
Component: Documentation Version: Unspecified
Severity: medium Keywords: xfce xfce4 acpi_wakeup checklogin.sh
Cc: Ticket locked: no

Description

Concerns document: http://www.mythtv.org/wiki/ACPI_Wakeup#Integrate_into_MythTV Chapter "Desktop users", script: /usr/bin/checklogin.sh

"who" or "users" reports only users that are logged on a terminal (TTY or Xterm or such). Graphical logon is not reported -> Shutdown could occur during a normal X-session. This happens at least on my configuration with LXDM + XFCE4. "who" is not sufficient to test if users are logged on in this case.

Change History (2)

comment:1 Changed 7 years ago by qwertypoke <tuomas.jantti@…>

Sorry. I messed up with my cut and pasting. Following got left out:

There are some suggestions on how to test for GUI logon in xfce4 here (one of them is mine): http://stackoverflow.com/questions/11467258/how-to-detect-a-user-logged-in-through-gui-in-linux/16039317#16039317

It would probably be best if the behaviour of Xfce be changed. But a fix in mythtv would break nothing if Xfce gets changed some time.

comment:2 Changed 7 years ago by Raymond Wagner

Resolution: Invalid
Status: newclosed

The wiki is freely editable. If there is a problem with some script available on the wiki, fix it, or mention the issue in the discussion page for someone else to fix it. Trac is for issues that require someone with special privileges, such as commit access or a terminal login to the web server.

Note: See TracTickets for help on using tickets.