KChildlock

System Software

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

10
7.9
Available as/for: -
Description:

kchildlock is a tool to monitor and restrict the time a children spends on the computer. The limits can be specified per day of the week, by lower and upper hour limits, maximum daily usage time, and maximum weekly usage time. The same restriction limits can be applied to applications based on the user login. It requires the KDE4 Desktop.
Last changelog:

5 years ago

v0.91.1
* updates needed for packaging of actual versions (opensuse 13.x)
* correct existing bugs for 64 bit versions of KDE
* communicaiton wih DBUS now no more needs Console Kit, but standard functions in KDE
* some minor rework done for the deamon (mainly get_active_session)

v0.90.4.2
* new greek translation by Dimitrios Glentadakis

v0.90.4.1
* common include file changed for opensuse 12.2
(compilation error)

v0.90.4
* new czech translation by Pavel Fric
* bug fix: change layout of consumption file: every user record now has
day_of_week and week_of_year. If supervising two or more children,
the resetting of dayly or weekly values was only done for the
current user; the others kept accumulated values.
* bug fix: in some cases the limits for groups were not applied.
(time duration). Only the first member of a group was restricted.
* bug fix 3381398: prevent fclose on null pointer

v0.90.3
* bug fix: documentation compilation on Chakra repositores did not work
* new russian translation by Z. Lezhnin
* new ukrainian translation by Yuri Chornoivan
* documentation updated

v0.90.2
* bug fix: crash when adding first user

roctheme

10 years ago

Is there a version for Kubuntu maverick too?

Report

C

LandertRene

10 years ago

not yet available. But will try to make a package in the next month.

Report

C

LandertRene

9 years ago

Version for Maverick exists now.

Report

lbayle

10 years ago

Oh my god, the code is horrible :-(

I did want to help a little, fixing a fiew things and adding statistics.

But no, sorry...

Report

C

LandertRene

10 years ago

I know it; should do a complete rework... (but this will take a lot of time :-(( )

Report

fbusse

10 years ago

A current status display - both an overview inside the admin tool and a user specific app - showing elapsed/remaining time would be helpful.

(No, I'm sorry, I'm no programmer. Buy yes, I would pay for it.)

Report

C

LandertRene

10 years ago

I will check how to realize this request. But this can take some time ...

Report

fbusse

10 years ago

Users on our network equally have access to all machines, /home is an NFS mount to a NAS device. Obviously, it would make sense to have KChildlock monitor usage irrespective of the machine used.

Would it be advisable to link /usr/share/kde4/config/kchildlockrc to one common file and /var/opt/kchildlock/ to one common directory on the NAS from all machines?

Any further hints?

Report

C

LandertRene

10 years ago

Yes, this is a good idea, it should work. The configuration data is in the file /usr/share/kde4/config/kchildlockrc, so link it to a common file on the NAS. A second copy of the config file is /root/.kde4/share/config/kchildlockrc , which has to be linked to a common file on the NAS too. The aggregated usage for each user is in a file in the directory /var/opt/kchildlock/ , so you have to link it to a common NAS file.

Report

fbusse

10 years ago

The root copy of kchildlockrc on our systems is in /root/.kde/, not in /root/.kde4/ (which does not exist).

The both copies of kchildlockrc appear to be identical. May they link to the same file?

Report

C

LandertRene

10 years ago

The copies of kchildlockrc should be identIcal, that's ok. It is better **NOT** to link the copy of it in /root/.kde/... to the other file in /usr/share/... !

Report

theubuntunews

10 years ago

Hi,
realised package for Kubuntu 10.04 Lucid

http://theubuntunews.blogspot.com/2010/07/kchildlock-restricts-time-children.html

roberto

Report

fbusse

10 years ago

Thanks for your work. The .deb installs fine, but KChildlock fails to start.

Generated bug report on https://bugs.kde.org/show_bug.cgi?id=244227

Report

C

LandertRene

10 years ago

I could reproduce the error, and fixed the bug. Please use version 0.76.3 downloadable from the home page http://sourceforge.net/projects/kchildlock/files/kchildlock/0.76.3/kubuntu/

Report

fbusse

10 years ago

Install done fine, now. However, no usage time appears to be written to /var/opt/kchildlock/.kch_time_XYZXYZXYZ.tmp (as mentioned in the manual)

Have the files been moved to another location?

Report

C

LandertRene

10 years ago

The directory is still /var/opt/kchildlock. There should be a file 'dummy.txt' in it. The directory should have write permissions for the group 'users'. Pleae check these two things.

regards
René

Report

fbusse

10 years ago

ls for /var/opt/kchildlock:
4 drwxrwx--- 2 root users 4096

ls for /var/opt/kchildlock/dummy.txt:
4 -rw-r--r-- 1 root root 67

I assume that users managed by kchildlock should have rwx-access to the directory: On our systems, due to an external restriction users are in group 500 (instead of 100 users). Chgrp'ing /var/opt/kchildlock to 500 resolves the problem.

Should any further access rights be altered?

Report

C

LandertRene

10 years ago

No, if the user has rw permissions on that directory, it is sufficent.

Report

fbusse

11 years ago

Is there a version for Kubuntu Lucid somewhere?

Report

C

LandertRene

11 years ago

not yet, but i could generate it next week. I will inform you if it is downloadable.
Regards
Rene

Report

C

LandertRene

10 years ago

The package is now downloadable from the home page http://sourceforge.net/projects/kchildlock/files/kchildlock/0.76.3/kubuntu/

Report

OdinEidolon

11 years ago

Under ArchLinux, KDE4.4, kchildlock can't start since it crashes systemsettings. I can provide any info needed.

Error is:

Quote:kdesu(13980) startApp: Daemon not safe (not sgid), not using it.

kdesu(13980)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(13980)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(13980)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/process.cpp : 381 ] Child pid 13995
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line ""
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line "kdesu_stub"
kdesu(13980)/kdesu (kdelibs) KDESu::PtyProcess::exec: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/process.cpp : 295 ] Running "/bin/su"
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line "Password: "
kdesu(13980)/kdesu (kdelibs) KDESu::PtyProcess::WaitSlave: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/process.cpp : 381 ] Child pid 13999
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line ""
kdesu(13980)/kdesu (kdelibs) KDESu::SuProcess::ConverseSU: [ /home/phil/kdemod/core/kdelibs/src/kdelibs-4.4.2/kdesu/su.cpp : 259 ] Read line "kdesu_stub"

Report

C

LandertRene

11 years ago

please try again with latest version 0.76.2!
try as normal user with 'kdesu', and as root user calling 'systemsettings'. perhaps there is a difference?

Report

OdinEidolon

11 years ago

still with 76.1, this is the output error which happens **sometimes** when it crashes.
Quote:
Application: Modulo di controllo di KDE (kcmshell4), signal: Segmentation fault
[KCrash Handler]
#5 0x00007f6ed76f529d in KchildlockConf::fillValuesInGui_u1(Ui_userPage*) () from /usr/lib/kde4/kcm_kchildlock.so
#6 0x00007f6ed76b37bb in KchildlockConf::load() () from /usr/lib/kde4/kcm_kchildlock.so
#7 0x00007f6ed76b0c0e in KchildlockKCM::load() () from /usr/lib/kde4/kcm_kchildlock.so
#8 0x00007f6ee5548521 in KCModule::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#9 0x00007f6ee4848999 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#10 0x00007f6ee3c4a3bf in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x00007f6ee3bf498c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x00007f6ee3bfae5b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x00007f6ee54962b6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#14 0x00007f6ee4838d5c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#15 0x00007f6ee483b4d7 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#16 0x00007f6ee4862673 in ?? () from /usr/lib/libQtCore.so.4
#17 0x00007f6edff15da2 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007f6edff19c18 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#19 0x00007f6edff19dcc in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007f6ee48621b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#21 0x00007f6ee3ca353e in ?? () from /usr/lib/libQtGui.so.4
#22 0x00007f6ee4837682 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#23 0x00007f6ee4837a5c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007f6ee40bcbbe in QDialog::exec() () from /usr/lib/libQtGui.so.4
#25 0x00007f6ee5e6d870 in kdemain () from /usr/lib/libkdeinit4_kcmshell4.so
#26 0x00007f6ee5b28b1d in __libc_start_main () from /lib/libc.so.6
#27 0x0000000000400629 in _start ()


and this is what happens if I write

sudo /usr/bin/kcmshell4 kcm_kchildlock --
Quote:
Error: "/var/tmp/kdecache-adriano" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-adriano" is owned by uid 1000 instead of uid 0.
kcmshell(29920)/kdeui (KConfigDialogManager): A widget named ' "kcfg_enabled" ' was found but there is no setting named ' "enabled" '
KCrash: Application 'kcmshell4' crashing...
sock_file=/home/adriano/.kdemod4/socket-myhost/kdeinit4__0
[1]+ Exit 253 /usr/bin/kcmshell4 kcm_kchildlock --

these add to the previous error, which happens only if I start systemsettings with kdesu.

Report

C

LandertRene

11 years ago

the second error you mention with the command 'sudo kcmshell4 ...' is a fact. You can only call it as root or with 'kdesu systemsettings'.
I can reproduce the first error if I call the program without 'kdesu'. After saying ok to the error message 'you have to be root to use this program' the program will crash with the same crash log. I have to do more tests.

Rene

Report

5 years ago

v0.91.1
* updates needed for packaging of actual versions (opensuse 13.x)
* correct existing bugs for 64 bit versions of KDE
* communicaiton wih DBUS now no more needs Console Kit, but standard functions in KDE
* some minor rework done for the deamon (mainly get_active_session)

v0.90.4.2
* new greek translation by Dimitrios Glentadakis

v0.90.4.1
* common include file changed for opensuse 12.2
(compilation error)

v0.90.4
* new czech translation by Pavel Fric
* bug fix: change layout of consumption file: every user record now has
day_of_week and week_of_year. If supervising two or more children,
the resetting of dayly or weekly values was only done for the
current user; the others kept accumulated values.
* bug fix: in some cases the limits for groups were not applied.
(time duration). Only the first member of a group was restricted.
* bug fix 3381398: prevent fclose on null pointer

v0.90.3
* bug fix: documentation compilation on Chakra repositores did not work
* new russian translation by Z. Lezhnin
* new ukrainian translation by Yuri Chornoivan
* documentation updated

v0.90.2
* bug fix: crash when adding first user

12345678910
13
product-maker janet Sep 25 2012 9 excellent
product-maker alltiptop Sep 19 2012 9 excellent
product-maker gdesanti Oct 27 2011 9 excellent
product-maker micky1067 Oct 14 2011 9 excellent
product-maker ZLv Aug 23 2011 9 excellent
product-maker Heart Jul 25 2011 9 excellent
product-maker zubi May 22 2011 9 excellent
product-maker paul21 May 15 2011 9 excellent
product-maker ATAHUALPA May 14 2011 9 excellent
product-maker sefran May 11 2011 9 excellent
product-maker pejakm May 11 2011 9 excellent
product-maker Contrast May 10 2011 9 excellent
product-maker Genserowski Dec 19 2010 9 excellent
Be the first to comment
CatchTime
Aug 27 2013
dront78
Feb 23 2013
Heart
Jul 25 2011
sefran
May 11 2011
zubi
Dec 11 2010
janet
Aug 04 2010
sefran007
Apr 27 2010
chetankhona
Apr 01 2010
AlexeyK
Feb 09 2010
AngelBlue01
Dec 17 2009
File (click to download) Version Description PackagetypeArchitectureRelease ChannelDevices Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.91.1
updated Aug 15 2015
added Aug 29 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1
System Tags app software