Bug 175220

Summary: porting of "bool KProcess::setPriority ()" from KDE3 to KDE4
Product: [Frameworks and Libraries] kdelibs Reporter: urwald <urwald>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: normal CC: cullmann
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: unspecified   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description urwald 2008-11-15 14:41:08 UTC
Version:            (using KDE 4.1.3)

Since KDE 3.2, the class KProcess had a function setPriority(). (see http://developer.kde.org/documentation/library/3.2-api/kdecore/html/classKProcess.html#a37) With this function, it was possible to set the process priority.

Since KDE 4, this function is no longer avaible. Please make it avaible also in KDE 4!

(In KDE 3, setPriority() accepted an int as argument, corresponding to the UNIX "nice" levels. PrioLowest, PrioLow, PrioLower, PrioNormal, PrioHigher, PrioHigh, PrioHighest are only representing values between -20 und 19. KDE 4 isn't limited to UNIX, so it seems better to me, to make a new, platform-indepented enum with values named like above - without relying on UNIX "nice". setPriority should accept than only this enum as argument - and transfer it to a platform-dependend value.)
Comment 1 Oswald Buddenhagen 2008-11-17 09:30:01 UTC
this is trolltech task 164953 and "it needs some thought".
Comment 2 urwald 2008-11-17 12:51:17 UTC
See http://trolltech.com/developer/task-tracker/index_html?method=entry&id=164953 for details.

However, Trolltech has decreased the priority bit by bit down to actually "No Priority". So I assume we won't get an implementation in QProcess... and this would make it interesting to implement it in KProcess.
Comment 3 Oswald Buddenhagen 2008-11-17 14:13:00 UTC
if you can come up with semantics that work reasonably well cross-platform, we can have it in qt "soon" (qt 4.6, that is). but you'll notice that it isn't straight-forward by any means.
Comment 4 urwald 2008-11-17 14:44:32 UTC
Okay, my knowlege is limited to linux. I didn't know that that's complicate on other platforms...
Comment 5 Christoph Cullmann 2024-05-04 17:12:57 UTC
We had 2 more porting steps, if still api is missing that is really needed, please open best an up-stream bug for QProcess.