Re: Fw: copy path :-)

Carles Pina i Estany <[email protected]> Sat, 2 Dec 2006 22:17:12 +0200
Newsgroups gmane.comp.gnome.apps.gqview.devel
Message-ID <[email protected]>
Hi again,

On Dec/02/2006, Carles Pina i Estany wrote:
> 
> Hi,
> 
> On Dec/02/2006, John Ellis wrote:
> > Carles Pina i Estany wrote:
> > 
> > >Last Easter I sent a patch to add an entry in contextual menu: "Copy
> > >path". One month ago aprox. I discovered that it was possible to do it
> > >using drag and drop :-D and we thought that "Copy path" entry menu was
> > >not really needed.
> > >
> > >But I don't get used to use konsole , and using xterm drag and drop is
> > >not working :(, and even if it would be working, sometimes I have gqview
> > >in one desktop and the destination xterm/konsole in other desktop, so to
> > >us drag and drop is not easy...
> > >
> > >For above reasons, I say again: +1 vote for copy path in menu entry :-)
> > >
> > > PS: the patch:
> > > 
> > http://sourceforge.net/mailarchive/forum.php?thread_id=10167948&forum_id=5979
> > >
> > 
> > 
> > For now you could set up an editor slot with xclip
> > 
> >  http://people.debian.org/~kims/xclip/
> > 
> > Disclaimer: I have not tried xclip myself.
> 
> It is fantastic!
> 
> #!/bin/bash
> 
> TOTAL=""
> 
> for i in "$@"
> do
>         TOTAL="$TOTAL \"$i\""

I think that is possible to escape from quotes (photos with quotes
itself). So don't do it with photos with quotes or will fail (even
execute something bad...)

-- 
Carles Pina i Estany		GPG id: 0x8CBDAE64
	http://pinux.info	Manresa - Barcelona

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV