steph a écrit :
Duflot Jean-Luc <[email protected]> writes:
The question is now how to update-menus automatically. I will try to
put it in rc.lua.

I'm not sure, but if you remove ~/.config/awesome/debian, Awesome will
search the debian menu in /etc/xdg/awesome/debian/menu.lua, and I
think that this file is automatically updated by apt or dpkg (or by
update-menus as root).

If you make update-menus as user, it will re-create
~/.config/awesome/debian/menu.lua but this file isn't automatically updated.

regards,
steph


You are right. If I put update-menus in rc.lua, I need a first awesome
reset to update ~/.config/awesome/debian/menu.lua, then a second one to
get the updated menu. It is not so smart !

And if I remove ~/.config/awesome/debian/menu.lua without update-menus
in rc.lua, /etc/xdg/awesome/debian/menu.lua is automatically updated,
and I need only one reset to get the menu updated. Thats's better.

To get a fully automatic menu, the question is now to avoid this awesome
reset. I assume it has
something to do with this in rc.lua :

mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu,
beautiful.awesome_icon },
                                    { "Debian",
debian.menu.Debian_menu.Debian },
                                    { "open terminal", terminal }
                                  }
                        })

and that I should add a command detecting the change in menu.lua and
executing again mainmenu = ...

But it is far away my programming ability. Could you give me another hint ?

Thank you very much, steph.

Jean-Luc





--
To unsubscribe, send mail to [email protected].

Reply via email to