On 26/10/06, <b class="gmail_sendername">The Rasterman Carsten Haitzler</b> &lt;<a href="mailto:raster@rasterman.com">raster@rasterman.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
the spec - especially the icon finding pats, are atrocious when it comes to<br>overhead. the hoops&nbsp;&nbsp;then end up needing to get jumped through for speedups are<br>nasty. :(</blockquote><div><br>Well, the spec was written a while ago.&nbsp; It's not the only spec in the world that could be better in hindsight!
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">know what icons have a Source= and Original= line so we can keep a list of these
<br>(mots likely a short one) and just in the background every few seconds or<br>minute or whatever poll each file in the &quot;personally modified .desktop files&quot;<br>list and see if the modified time of Source changes (or md5sum or just compare
<br>directly to our Original copy). yes - keep a COPY of the Original too - only<br>for .desktops that the user modifies though. this is an expense of 1 extra file<br>for the modified copy (so a private .desktop copied from the original then
<br>with entries changed/added/deleted as desired by the user and a pristine<br>original copy just in case the source goes awol or changes so we can figure<br>out what changed without having to turn the user's modified copy into what is
<br>effectively a unified diff and thus have to change a lot of .desktop<br>parsing/handling in a lot of apps). since we have this - we can compare it to<br>the new &quot;source&quot; that has been installed and see if anything has changed
<br>- if it has the upstream changed and we can figure out what and provide all the<br>information if needed to the user and present options as to what to do (or just<br>try and do it automatically). this should work universally with anything you
<br>feel like changing and not change parsing semantics of a .desktop file for older<br>implementations as it is just an extension to the current format.<br><br>&gt; Actually, I think users will be ok with having a menu item not get updated
<br>&gt; if they've changed anything like the name or parameters, in fact this is<br>&gt; probably what they want.&nbsp;&nbsp;However, if all they've done is unhide the item, I<br>&gt; think they'd want system updates to apply.&nbsp;&nbsp;If the file name changes, I
<br>&gt; don't think it's a problem for a user to have to unhide it again; there's<br>&gt; really nothing else possible, but the old one item should no longer appear.<br>&gt; Perhaps we need another file which simply contains the hidden status, or put
<br>&gt; this in the .menu file instead.<br><br>the problem with this is - it only handles this situation with 1 property. it's<br>a very limited solution which should be able to apply to any property (use only<br>changed the icon but wants everything else to be inherited/stay the same. user
<br>only changed the name (label) because it was too long but wants everything else<br>to stay the same and be inherited). the same problem as with hidden properties.</blockquote><div><br>You're right, the user would probably want this for all properties.
<br><br>I might have to have a go at implementing this three-file method then in gnome-menus (probably next weekend or the weekend after if I'm not busy) so I'll let you know how it goes!<br><br>Pete<br></div></div>