Re: menu editing in gnome-2.10.x: continued...



Thanks Joseph for all your great feedback. :)

I realize you Cc'd the author -- and I will do so as well, as this is
important feedback IMHO.


> I have Travis Watkins' <alleykat gmail com>  python-based GNOME menu
> editor running on a PPC running YDL-4.0.1 and garnome-2.10.0.1:
> 
>         http://dev.realistanew.com/menu-editor/
>         
> This tool allows user to create, destroy, and modify ".desktop" files. 
> 
> Like gnome-menu-editor-0.1 reported on earlier, this tool is also in its
> infancy and is evolving rapidly, but is useful in its current form. 
> 
> As a measure of success, I used the tool to add a member to the
> Applications / Internet menu for firefox.
> 
> Looking at the source code, I see some hard-coded paths in "menu-editor"
> 
> 	/usr/share/applications
> 	/usr/share/pixmaps

As there is an installer which takes the $prefix as argument, this must
not be hard coded. (I guess Ubuntu uses this $prefix... ;)

Joseph, how did you install it? Did you use the setup.py script at all?


> I installed garnome-2.10.0.1 under /opt/garnome so I replaced the above
> with hard-coded paths with:
> 
> 	/opt/garnome/applications
> 	/opt/garnome/pixmaps
> 
> Doing so has the effect of modifying the contents of
> 
> 	/opt/garnome/applications

Wait. If the tool is supposed to be used by users, rather than root,
this is a no-no. In general, the user has no write permissions to these
directories.

(The fact that this often is the case with GARNOME installations is an
entire different issue and sure was not intended by the author.)


> rather than
> 
> 	/usr/share/applications
> 
> which contains GNOME-2.6 code installed from YDL-4.0.1
> 
> There are mysteries to explore.  The previous 0.4.2.1-2 version ran only
> as root [because of file system permissions]. The current 0.4.3 version
> can be run as root or a non-root user. A different set of information is
> displayed in each case, which is suggestive.


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]