drag, drop and copy-paste
Hi,
I don't know if this is a bug or nor, or related to gnome or inkscape, but the other day I tried to copy a drawing from one document to another.
I copied the element in one document, changed focus to the other element, but when pasting I didn't get the expected result.
What happened was that I pasted the latest copied element in the other document. I've also tried to drag the drawing, but that didn't work either, as that wasn't possible.
Again: I am not sure if this is related to inkscape.
Environment: I am using Fedora Core 4 on a laptop.
Trond Husø wrote:
Hi,
I don't know if this is a bug or nor, or related to gnome or inkscape, but the other day I tried to copy a drawing from one document to another.
I copied the element in one document, changed focus to the other element, but when pasting I didn't get the expected result.
What happened was that I pasted the latest copied element in the other document. I've also tried to drag the drawing, but that didn't work either, as that wasn't possible.
Again: I am not sure if this is related to inkscape.
This is a known problem in Inkscape, you can't copy/paste from two different instances of the application. You can copy only if the second instance is started using File->New from the first one.
Nicu Buculei <nicu@...143...> wrote:
Trond Husø wrote:
Hi,
I don't know if this is a bug or nor, or related to gnome or inkscape, but the other day I tried to copy a drawing from one document to another.
I copied the element in one document, changed focus to the other element, but when pasting I didn't get the expected result.
What happened was that I pasted the latest copied element in the other document. I've also tried to drag the drawing, but that didn't work either, as that wasn't possible.
Again: I am not sure if this is related to inkscape.
This is a known problem in Inkscape, you can't copy/paste from two different instances of the application. You can copy only if the second instance is started using File->New from the first one.
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
On Mon, Oct 31, 2005 at 07:03:08PM +0000, Bungee wrote:
Nicu Buculei <nicu@...143...> wrote:
This is a known problem in Inkscape, you can't copy/paste from two different instances of the application. You can copy only if the second instance is started using File->New from the first one.
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
Yes, there are ways of doing that. I think we just need a volunteer to research and implement. Don't know if it's an easy thing or more involved... If anyone's interested in hacking on it, I can help give some pointers to where to start.
Bryce
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
Yes, there are ways of doing that. I think we just need a volunteer to research and implement. Don't know if it's an easy thing or more involved... If anyone's interested in hacking on it, I can help give some pointers to where to start.
Firefox on Linux does it by having the executable "firefox" be a shell script which checks for an instance of mozilla-firefox (the real binary). mozilla-firefox has a command line argument to have the named instance instance open a new window.
I guess what I'm trying to say is, is there way to open a new window in a running instance of Inkscape? If so, a similar aproach could be taken.
-- Michael Moore ------------------------------- www.stuporglue.com
On Mon, Oct 31, 2005 at 10:17:34PM -0700, Michael Moore wrote:
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
Yes, there are ways of doing that. I think we just need a volunteer to research and implement. Don't know if it's an easy thing or more involved... If anyone's interested in hacking on it, I can help give some pointers to where to start.
Firefox on Linux does it by having the executable "firefox" be a shell script which checks for an instance of mozilla-firefox (the real binary). mozilla-firefox has a command line argument to have the named instance instance open a new window.
I guess what I'm trying to say is, is there way to open a new window in a running instance of Inkscape? If so, a similar aproach could be taken.
There isn't a mechanism like that currently. I suspect that the DOM work Ishmal is heading up would be the logical place to put this capability.
Bryce
Quoting Bryce Harrington <bryce@...983...>:
There isn't a mechanism like that currently. I suspect that the DOM work Ishmal is heading up would be the logical place to put this capability.
...wha?
What we'd need, first and foremost, to implement this would be a bit of portable IPC code that the inkscape executable could use to check if an existing session was running, and if so instruct that to open the document. I don't see how that is related to DOM?
At the simplest, it would mean opening an IPC port (Unix domain socket on Unix/OSX; named pipe on Win32) from main.cpp and using some dirt simple protocol to discover and communicate with an existing Inkscape instance.
Besides Mozilla/Firefox, xmms is another example of an application that does this.
-mental
On 11/1/05, mental@...32... <mental@...32...> wrote:
Quoting Bryce Harrington <bryce@...983...>:
There isn't a mechanism like that currently. I suspect that the DOM work Ishmal is heading up would be the logical place to put this capability.
...wha?
Perhaps there was some sort of confusion with OLE/COM?
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
Op maandag 31 oktober 2005 20:03, schreef Bungee:
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
I know for sure that sodipodi had an command line option --unique which checked make sodipodi check for another instance.
Strangely enough this option is later removed from the sodipodi code propably before the inkscape fork.
On Tue, Nov 01, 2005 at 11:08:01AM +0100, Pim Snel wrote:
Op maandag 31 oktober 2005 20:03, schreef Bungee:
Could inkscape be made to check if it's aready running and not open new instances? I've never really understood the need for multiple instances in any application that can handle multiple files/windows.
I know for sure that sodipodi had an command line option --unique which checked make sodipodi check for another instance.
Strangely enough this option is later removed from the sodipodi code propably before the inkscape fork.
Interesting, I hadn't ever heard of this. If you know exactly which version of sodipodi had this feature, you could probably locate and extract that code, and chances are fairly good it would still be applicable to Inkscape. Do you remember which version had it?
Bryce
participants (8)
-
unknown@example.com
-
Bryce Harrington
-
bulia byak
-
Bungee
-
Michael Moore
-
Nicu Buculei
-
Pim Snel
-
Trond Husø