[maemo-users] [maemo-users] Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
From: Armin M. Warda Armin.Warda at Web.DeDate: Tue Feb 28 11:48:12 EET 2006
- Previous message: [maemo-users] I finally got to actually touch a Nokia 770
- Next message: [maemo-users] Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
sorry for this problem. I will integrate your patch asap and build a
new package. Thanks!
Armin.
On Monday 27 February 2006 23:20, you wrote:
> Hi,
>
> I tried your version of the Load-Plugin applet. Unfortunately it
> makes de device reboot everytime I click on the applet. I could
> repeat the problem inside scratchbox. After going through the
> source, I found out that the problem is swapname not being
> initialized the first time. Here's a small patch to make it work.
>
> diff -Naur loadapplet-aw/load-plugin.c
> loadapplet-henry/load-plugin.c --- loadapplet-aw/load-plugin.c
> 2006-02-28 00:32:41.000000000 +0100 +++
> loadapplet-henry/load-plugin.c 2006-02-27 22:50:01.000000000
> +0100 @@ -536,7 +536,7 @@
> gtk_menu_shell_append(GTK_MENU_SHELL(info->menu),
> info->menu_separator);
> /* Swap */
> - if (strncmp(swapname, "", 1) != 0) {
> + if (swapname && strncmp(swapname, "", 1) != 0) {
> if (swapisactive())
> sprintf(label, "swapoff %s (%d MB used)", swapname,
> (swapused+512)/1024);
> else
>
> Regards,
>
> Henry
--
--- May the Source be with you! Linux. ---
--- http://www.arminwarda.mynetcologne.de/
--- secure eMail: http://www.gnupg.de/ ---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.maemo.org/pipermail/maemo-users/attachments/20060228/f1f68884/attachment.pgp
- Previous message: [maemo-users] I finally got to actually touch a Nokia 770
- Next message: [maemo-users] Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
