How to detect if the Unity login screen is present

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question





















  • 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















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.










share|improve this question





















  • 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













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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

Unable to execute new pre-installation script (/var/lib/dpkg/tmp.ci/preinst)

Running the scala interactive shell from the command line

Do not install recommended packages of dependencies