Package: r-cran-rcmdr Version: 1.3-15-1 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< ------------------------- /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'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. - 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. - 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 . Pietro [0]: http://bugzilla.gnome.org/show_bug.cgi?id=331142
signature.asc
Description: Questa รจ una parte del messaggio firmata digitalmente