menu autoreload
Jasper Huijsmans
jasper at moongroup.com
Fri Oct 24 13:12:40 CEST 2003
I think you may be right. I'll have a look and change it if necessary.
However, it also does work fine for me, so I'm not sure if there is
something else as well. Just to make sure, xfdesktop will not reread a
menu when a file that is included from menu.xml changes.
Even when using 'touch menu.xml' xfdesktop rereads my menu.
Jasper
Op vr 24-10-2003, om 11:55 schreef Intelligent:
> I'm trying to use xfce4-cvs on my debian system
> file menu.xml have been regenerated every time i install or remove smth,
> but xfce doesn't reload it :(
>
> I look through code and found:
>
> xfce-devel/xfdesktop/src/menu.c
> ===
> if (!ifactory || !MainMenuData || ctime < st.st_ctime)
> ===
>
> man 2 stime:
> ===
> The field st_mtime is changed by file modifications, e.g. by
> mknod(2), truncate(2), utime(2) and write(2) (of more than zero bytes).
>
> The st_mtime field is not changed for changes in owner, group, hard link
> count, or mode.
>
> The field st_ctime is changed by writing or by setting inode information
> (i.e., owner, group, link count, mode, etc.).
> ===
>
> so, i think it'a bug.
>
>
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
More information about the Xfce4-dev
mailing list