How to detect if the Unity login screen is present

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
unity events
add a comment |Â
up vote
0
down vote
favorite
I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
unity events
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
unity events
I am trying to run a program when the Unity lock screen is present but I cannot figure what or how I can listen for this event.
unity events
unity events
asked Mar 20 at 17:37
Senior-Jesticle
142
142
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07
add a comment |Â
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1017703%2fhow-to-detect-if-the-unity-login-screen-is-present%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You might try setting up something that polls for a process called gdm (or lightdm on versions before 17.10,) though that will likely start just slightly before the actual login screen is presented to the user. Is this only on first boot or is this when the computer locks because of standby or on a timer?
â sbergeron
Mar 20 at 17:45
@sbergeron This would be on first boot and whenever the computer locks on standby or timer.
â Senior-Jesticle
Mar 20 at 18:04
Is this on your computer or on a computer where you can't control the boot process? If it's your computer, I think lightdm might have the ability to run a script automatically when it is engaged, dont know about gdm. EDIT: just remembered, dbus exists. I think one of the answers here goes over how it should work. It should also be standard across different login managers: askubuntu.com/questions/505681/â¦
â sbergeron
Mar 20 at 18:07