I want to use the File > Revert functionality, which is not present in the default command line for the terminal. I want to use this functionality in my application as a shell command, how could i get access to Revert for using it as a command in terminal?
Not sure what you're trying to accomplish. File|Revert undoes changes since the last save in the current Inkscape session, AFAIK. If that's really what you want, the "verb" called "FileRevert" seems to have been around a while. For example, I created a file called foo.svg that had a single circle with an ID of "path10". I then executed this:
Thanks for your reply. Your command opens up a new inkscape window. What i wanted is to do the revert in an existing window without opening a new window again. Do you have any idea how that might be done?
I want to use the File > Revert functionality, which is not present in the default command line for the terminal. I want to use this functionality in my application as a shell command, how could i get access to Revert for using it as a command in terminal?
Cheers!
Hhmm, you probably already found it. But just in case, here's a reference guide for the commandline. https://inkscape.org/en/doc/inkscape-man.html
Or else maybe someone else will know the answer.
The link i found already, my problem is that the File>Revert is not present there as a command 😪
Not sure what you're trying to accomplish. File|Revert undoes changes since the last save in the current Inkscape session, AFAIK. If that's really what you want, the "verb" called "FileRevert" seems to have been around a while. For example, I created a file called foo.svg that had a single circle with an ID of "path10". I then executed this:
This selected my circle, then deleted it, then reverted the file (which caused a "do you want to do that" prompt, but that's a separate issue).
Thanks for your reply. Your command opens up a new inkscape window. What i wanted is to do the revert in an existing window without opening a new window again. Do you have any idea how that might be done?
How are you opening the file you're working on on the command line?
Inkscape will either work all via command line, or all via opening by hand. A mix is not possible (only through extensions there's a kind of a mix).