Hi,
Incidentially, you may have found this bug useful once upon a time:
https://bugs.maemo.org/show_bug.cgi?id=374 *grin*
But, anyway, the line you want to search in that bug is setpriority()
which'll allow you to override the nice value from your app.
Regards,
Faheem
On Wed, Jun 17, 2009 at
Nick Nobody wrote:
if an application is launched by the menu directly from an
executable (using the Exec variable in the .desktop file) it gets a nice
value
of -1. But, if the application is started over D-Bus (using the
X-Osso-Service
variable in the .desktop file) it gets a nice value
Frantisek Dufka wrote:
Sadly I think that you cannot raise the priority from 0 to -1 unless
being root, you can just lower it so that setpriority call may not help
you.
If it is really crucial for the application to have higher priority,
maybe it could be installed as setuid root. In
Henrik Hedberg wrote:
If it is really crucial for the application to have higher priority,
maybe it could be installed as setuid root. In that way, it could first
set priority from 0 to -1, and then drop the privileges.
Or postinstall script could add some helper to sudoers which could
Frantisek Dufka wrote:
Which OS version it is? This is a bug, both should have priority 0. Can
you reopen that bug Faheem linked with details about your OS version if
you see it on current OS version? Oh wait, maybe just forget it, it'll
be WONTFIXed anyway for any current system :-)
Just
Am Mittwoch, den 17.06.2009, 10:15 +0100 schrieb David Greaves:
Just thinking that it would be interesting and productive for Nokians to do a
trawl of WONTFIXes and add but if I were going to fix it, this is where I'd
start... and then possibly work with us on re-assigning them to an
On June 17, 2009 05:03:32 am Frantisek Dufka wrote:
Henrik Hedberg wrote:
If it is really crucial for the application to have higher priority,
maybe it could be installed as setuid root. In that way, it could first
set priority from 0 to -1, and then drop the privileges.
Or
Hi,
Is there a way to specify a default nice value for an application on maemo? I
noticed that if an application is launched by the menu directly from an
executable (using the Exec variable in the .desktop file) it gets a nice value
of -1. But, if the application is started over D-Bus (using