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 f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf

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=157005751&iu=/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=157005751&iu=/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=157005751&iu=/4140/ostg.clktrk___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel


[rkward-devel] run again link outside RKWard

2014-11-19 Thread meik michalke
hi,

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:


[Protocol]
exec=rkward
protocol=rkward
input=none  
output=none
copyToFile=false
copyFromFile=false
listing=false
reading=false
writing=false
makedir=false
deleting=false
moving=false
Icon=RKWard
maxInstances=1


but i'm also granted with an error message that it was impossible to open 
$HOME/rkward (?). anyway, currently rkward is not equipped to directly take 
such a link as input, so this cannot work, right? and even if it did, it would 
probably launch a new instance of RKWard instead of using a running one. most 
*.protocol definitions use some KIO slave.

the reason i was trying this is that i'll do an RKWard presentation at another 
university tomorrow, and it would have been so cool if it was possible to have 
these links in your presentation, instead of showing screenshots. but it would 
also be great for various other things, like shortcuts on your desktop, or 
sending pre-filled dialogs to students (or to this list, for debugging).


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf

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=157005751&iu=/4140/ostg.clktrk___
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel