Re: [rkward-devel] run again link outside RKWard

2014-11-27 Thread meik michalke
hi,

Am Freitag, 21. November 2014, 17:25:16 schrieb Thomas Friedrichsmeier:
 On Wednesday 19 November 2014 11:06:21 meik michalke wrote:
  i was curious if it was possible to get the run again links work also
  outside of RKWard
[...]
 2. Use
   rkward --reuse myurl
 to open myurl in an existing RKWard instance (if any).

awesome, works just great! i have a working rkward.protocol for that and will 
add it to git once i found the correct way to also add it to the installation 
process.

where would you like the .protocol file best in the source tree? my guess 
would be the location of the .desktop file.

i'm now trying to get an entry in the context menu of KDE file managers, so 
you can open any R script or workspace image with a right click. this should 
also make it easy to enable RKWard to offer this in its file browser dialog.

proof of concept first, then we can refine it.


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  institut fur experimentelle psychologie
  abt. fur diagnostik und differentielle psychologie
  heinrich-heine-universitat d-40204 dusseldorf

signature.asc
Description: This is a digitally signed message part.
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


Re: [rkward-devel] run again link outside RKWard

2014-11-21 Thread Thomas Friedrichsmeier
Hi,

On Wednesday 19 November 2014 11:06:21 meik michalke wrote:
 i was curious if it was possible to get the run again links work also
 outside of RKWard (e.g., open the output HTML file in your browser). i
 managed to fire up RKWard, at least, by creating the file
  /usr/share/kde4/services/rkward.protocol:

ok, I have not yet tried turning this into a protocol (I'll leave that up to 
you), but here's the new deal:
1. rkward now accepts any number of file/url arguments, instead of a single 
workspace file. These can be workspaces, workplaces, script files, html files, 
or rkward://-urls.
2. Use
  rkward --reuse myurl
to open myurl in an existing RKWard instance (if any).

Regards
Thomas


signature.asc
Description: This is a digitally signed message part.
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


Re: [rkward-devel] run again link outside RKWard

2014-11-19 Thread Thomas Friedrichsmeier
Hi,

On Wednesday 19 November 2014 11:06:21 meik michalke wrote:
 i was curious if it was possible to get the run again links work also
 outside of RKWard (e.g., open the output HTML file in your browser). i
 managed to fire up RKWard, at least, by creating the file
  /usr/share/kde4/services/rkward.protocol:

well, not until tomorrow, no ;-)

But in principle this should be not-so-difficult, doing:
1) Add a dbus interface to RKWard, which allows to tell RKWard to open some 
link. We even had this at one point (as the way for R to tell RKWard to open a 
help page), but it was obsoleted and removed (while porting to KDE4?).
2) A small wrapper (might even be possible to handle this inside the existing 
startup wrapper) to check whether an instance of RKWard is already registered 
on DBus. If so - see 1). Otherwise start RKWard.
3) The protocol file.

Regards
Thomas

signature.asc
Description: This is a digitally signed message part.
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration  more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751iu=/4140/ostg.clktrk___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel