Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session stay alive when rule changes #111

Open
MrFly opened this issue Jan 18, 2021 · 7 comments
Open

Session stay alive when rule changes #111

MrFly opened this issue Jan 18, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@MrFly
Copy link

MrFly commented Jan 18, 2021

I can't determine, if this is a bug in Little Brother or in the Taskbar:

If a session is alive (user logged in) and I'm changing the rules to kinda "force lock" of the pc, the new/updated rule does not work.

The situation: School ended earlier than the given time in the rule. I changed the rule to a time a few minutes in past. The taskbar showed the old value and the user stayed logged in.

I'm using the current versions of both apps (0.3.8_80) on Ubuntu in a client x64/server arm64 setup.

@marcus67
Copy link
Owner

Hi Mr. Fly! Thank you for your error report. I will look into this. When you say that you changed the rules, did you change the ruleset or the override of the current day?

@marcus67 marcus67 added the bug Something isn't working label Jan 18, 2021
@MrFly
Copy link
Author

MrFly commented Jan 18, 2021

@marcus67 I really changed the existing rule to a better matching value. I had a rule called Schultage, where I changed the end time from 16:00 to let's say 15:00.

Edit: I see I made a mistake in the report above: the taskbar showed something like "no more time" (don't know the exact wording), but it did NOT log off/lock the user. Sorry for that.

@marcus67
Copy link
Owner

Ok. Let me try exactly that! Thanks!

@marcus67
Copy link
Owner

Hmm. I just tried using the latest version 0.3.10 (revision 82) at 23:35 hours:

  • set the default rule to allow playtime until 23:55 hours
  • login as a monitored user
  • LittleBrotherTaskbar displays the correct number of remaining minutes
  • change the default rule to only allow playtime until 23:30 hours
  • LittleBrotherTaskbar changes the message to "no activity allowed" and plays the message "NAME, it is too late to use the computer. You will be logged out".
  • The user was logged out.

This looks OK to me.

@MrFly
Copy link
Author

MrFly commented Jan 18, 2021

Hmm, strange.... That's what I expected it to do, but did not work last time with 0.3.8. I upgraded today to 0.3.10, will give it a try tomorrow with my setup.

@MrFly
Copy link
Author

MrFly commented Jan 19, 2021

@marcus67 I tried two things: while the user was logged in, I first changed the start time to a time in the future -> worked; the user got logged out. After another login I tried to set the end time to a time in the past -> worked, too. So I see no problem here with the current version 0.3.10_82.

But one thing happend. I don't know, if we simply were to fast at testing and logged in before the taskbar could fetch the new values(?). The taskbar always gave a spoken message, that the user has no time and will be logged out. After that, the (right) left play time were said.

@marcus67
Copy link
Owner

marcus67 commented Mar 6, 2022

Hi @MrFly, is this still an issue? Otherwise, I would like to close this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants