[maemo-developers] [maemo-developers] launching applications via .desktop file, process priorities - scummvm problem

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Wed Jan 18 15:27:25 EET 2006
On Wed, 2006-01-18 at 14:47, ext Frantisek Dufka wrote:
> Hello,
> 
> it looks like when there is no service and non-maemo specific process is 
> launched it runs with nice value of -1 i.e. it has higher priority than 
> normal (example scummvm port). If it has service defined it has normal 
> priority (example gaim). Both have similar .desktop files but the maemo 
> specific one has some additional lines with service name etc.

That's strange, because the DBus has been patched so that its children
(launched programs) do not inherit the priority.

> Why the priorities differ? Can I tweak the priorities from the desktop 
> file to set scummvm back to normal? Problem with scummvm is that the 
> sound skips when it has higher priority. I suppose it is because sound 
> daemon priority is lower.

Desktop file should not affect the priority in any way.

> One can find it with ps in xterm. scummvm has sign '<' if launched from 
> menu. One can change it via renice command. renice 0 PID removes '<' 
> renice 1 PID and above shows 'N'.
> 
> Is this bug or design issue?

If it was launched by one of the DBus daemons then it seems a bug. What
version of DBus you have?

BR; Kimmo

> Also what is the correct syntax for desktop file if I need to launch 
> shell script and prevent it from being killed? Is it possible?
> I cannot find list of maemo specific properties and their values and 
> there is not much information here
> http://www.maemo.org/platform/docs/howtos/howto_porting_an_existing_application.html#Adding-to-Menu
> or here 
> http://www.maemo.org/platform/docs/howtos/howto_new_application.html#Creating-desktop-file
> 
> Also the freedesktop specification does not help much
> http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-0.9.4.html
> 
> Frantisek
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list