Pietro, Thanks for the bug report.
On 7 March 2009 at 12:24, Pietro Battiston wrote: | R Commander is used as a graphical interface to R, which means a | graphical application, and as such should be listed somewhere in the | Applications menu. | | This can be obtained by just adding to the package the following two | files: | | /usr/bin/rcmdr : | | ------------------- 8< ------------------------- | #!/bin/sh | R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R | | ------------------- 8< ------------------------- Can you provide a manual page too, please, as every program in /usr/bin needs one under Debian Policy. Alternatively, we plave the 'rcmdr' script in /usr/lib/R/site-library/Rcmdr which may be a better location anyway, and adapt the desktop file: | /usr/share/applications/rcmdr.desktop : | | ------------------- 8< ------------------------- | [Desktop Entry] | Categories=Education;Science;Math; | Comment=Graphical interface to the R environment for statistical | computing | Comment[fr]=Environnement graphique pour le logiciel de calcul | statistique R | Comment[it]=Interfaccia grafica per l'ambiente di calcolo statistico R | Exec=/usr/bin/rcmdr | Icon=/usr/share/R/doc/html/logo.jpg | Name=R Commander | Terminal=true | Type=Application | X-KDE-SubstituteUID=false | | ------------------- 8< ------------------------- | | | Please notice that: | - I would have preferred to not put R Commander under "Education", since | this is quite reductive. However, I'm afraid this is inevitable (see for | instance [0]). I don't follow, and I don't see why a gnome.org bugreport is relevant. Debian has its own hierarchies. For R, I use an (older-style) menu file with section="Applications/Science/Data Analysis" Aren't the menu and desktop entries derived the same way? | - I'm filing the bug here, I frankly ignore if upstream is interested in | this kind of desktop issues; the maintainer has probably better | knowledge than me. Anyway, the patch has almost no maintenance cost, | since it doesn't touch upstream code. That's a pretty narrow view. The desktop file is not distro-specific, so it should go upstream. One problem is that Rcmdr, via its R CMD INSTALL mechanism, has no means of reaching /usr/share/applications/ CCing John upstream. | - the rcmdr miniscript is itself quite useful (I do use it often); it | would also be possible for upstream to adopt only that, and then the | ".desktop" could be added as a Debian patch, don't know. Same problem. An R package cannot 'reach' /usr/bin. | - the only thing I don't like in this setup is that menu item uses (jpg) | R icon, not R Commander's one... that I was unable to find (though it | appears in the interface, so I imagine is dinamicly generated). | Eventually, it could be "staticized" and added too | as /usr/share/pixmaps/rcmdr.svg; then the line of the .desktop file | could be changed from | Icon=/usr/share/R/doc/html/logo.jpg | to | Icon=rcmdr.svg | . Maybe John can help us here? Dirk | | Pietro | | [0]: http://bugzilla.gnome.org/show_bug.cgi?id=331142 | | [GNUPG:] ERRSIG 71956D47CD9B9806 17 2 00 1236425052 9 | [GNUPG:] NO_PUBKEY 71956D47CD9B9806 -- Three out of two people have difficulties with fractions. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org