Re: kpty/utempter

2015-12-06 Thread David Faure
On Monday 30 November 2015 20:21:23 René J.V. Bertin wrote:
> I've had a quick look, and it appears that it shouldn't be overly hard to 
> port libutempter to OS X (which has setutxent, pututxline etc. instead of 
> "x-less" counterparts on Linux).
> 
> Question is, how useful is this in KPty?

`utempter is a privileged helper program that writes utmp/wtmp entries for 
unprivileged programs.`

Does utmp or wtmp exist on OSX?
Hmm, yes, but deprecated -- 
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/utmp.5.html
So probably not worth it.

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: kpty/utempter

2015-12-06 Thread René J . V . Bertin
On Sunday December 06 2015 21:52:21 David Faure wrote:

> > Question is, how useful is this in KPty?
> 
> `utempter is a privileged helper program that writes utmp/wtmp entries for 
> unprivileged programs.`

I can read, you know ;)

> 
> Does utmp or wtmp exist on OSX?
> Hmm, yes, but deprecated -- 
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/utmp.5.html
> So probably not worth it.

There's utmpx nowadays, which isn't marked as deprecated, and is backwards 
compatible with utmp:
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/utmpx.5.html

Question is, what are we missing out on without it? Is this what kdesu is based 
on, for instance?

R.
___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


Re: kpty/utempter

2015-12-06 Thread David Faure
On Sunday 06 December 2015 22:00:09 René J.V. Bertin wrote:
> On Sunday December 06 2015 21:52:21 David Faure wrote:
> 
> > > Question is, how useful is this in KPty?
> > 
> > `utempter is a privileged helper program that writes utmp/wtmp entries for 
> > unprivileged programs.`
> 
> I can read, you know ;)
> 
> > 
> > Does utmp or wtmp exist on OSX?
> > Hmm, yes, but deprecated -- 
> > https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/utmp.5.html
> > So probably not worth it.
> 
> There's utmpx nowadays, which isn't marked as deprecated, and is backwards 
> compatible with utmp:
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man5/utmpx.5.html
> 
> Question is, what are we missing out on without it? Is this what kdesu is 
> based on, for instance?

It's just about logging, so "based on" is not really true. I'm pretty sure 
kdesu works even without logging to utmp.

But I don't really need to tell you any of this, given that you can read :-)

-- 
David Faure, fa...@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5

___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


kpty/utempter

2015-11-30 Thread René J . V . Bertin
I've had a quick look, and it appears that it shouldn't be overly hard to port 
libutempter to OS X (which has setutxent, pututxline etc. instead of "x-less" 
counterparts on Linux).

Question is, how useful is this in KPty?

R.
___
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel