John, Here is a mail thread stemming from a Debian bug report related to Rcmdr and its desktop file. A better solution for you is suggested below:
On 18 January 2010 at 09:19, Denis Laxalde wrote: | Le dimanche 17 janvier 2010 à 11:23 -0600, Dirk Eddelbuettel a écrit : | > On 15 January 2010 at 09:00, Denis Laxalde wrote: | > | Hi, | > | | > | Le jeudi 14 janvier 2010 à 20:00 -0600, Dirk Eddelbuettel a écrit : | > | > Maybe you could just a two-liner in /usr/local/bin/, say /usr/local/bin/Rcmdr | > | > that contains | > | > | > | > #!/bin/sh | > | > sh /usr/lib/R/site-library/Rcmdr/etc/linux/Rcmdr.sh | > | > | > | > (minus the indentation) and you then load this ? You'd also have to place | > | > the .desktop file in the right place by hand, I can't do that easily for the | > | > package as all files belonging to the package end up below | > | > /usr/lib/R/site-library/Rcmdr | > | > | > | | > | Wouldn't it be possible to just modify the 'Exec' line in the .desktop | > | file that is shipped in the package to make it work ? | > | Something like: | > | Exec=sh /usr/lib/R/site-library/Rcmdr/etc/linux/Rcmdr.sh | > | > Not a bad idea. Does that work for you? | Yes, it does. | | Actually, a better solution would be to by-pass this shell script and | include its content directly in the menu file as: | Exec=sh -c 'R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"' | | This works too on my system. Excellent. So here is a revised version of inst/etc/linux/Rcmdr.desktop: ----------------------------------------------------------------------------- [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 Comment[de]=Graphische Umgebung fuer das R Programm fuer Statistische Berechnungen Exec=sh -c 'R_DEFAULT_PACKAGES="$R_DEFAULT_PACKAGES Rcmdr" R "$@"' Icon=/usr/lib/R/site-library/Rcmdr/etc/linux/Rcmdr.svg Name=R Commander Terminal=true Type=Application X-KDE-SubstituteUID=false ----------------------------------------------------------------------------- Moreover you can now delete inst/etc/linux/Rcmdr.sh Please do not hesitate to ask if you have any questions. Cheers, Dirk | | > All this is, as far as I know, only in Rcmdr as someone will invariably have | > suggested it to John Fox who almost surely said 'why not' and included it. He | > is primarily a Windows user. | | Including this upstream would be better, I agree. | | Cheers, | | Denis | | -- 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