Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Jun 2018, 09:42
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to use inkview to open svg images in ROX
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
souleau


Joined: 23 Oct 2016
Posts: 125

PostPosted: Mon 03 Apr 2017, 09:27    Post subject:  How to use inkview to open svg images in ROX  

Inkview is a very basic svg viewer that comes with Inkscape. If you have Inkscape installed, then you also have inkview.

You can use inkview to open an svg in terminal. You simply go to the folder that contains the svg image and type:

Code:
inkview image_name.svg


If there are multiple svg images inside the folder you can browse through them using the left/right arrow buttons.

That is all it does.

Whenever I clicked on an svg inside a ROX window, it would open LibreOffice for some reason and load it in there, eventhough I specified that my default drawing application was Inkscape.
I found that somewhat irritating.

So here's how to change that:

You open ROX File manager, and while you are in the root (~) window, you click on the eye-icon in the task bar. This will show you all the folders and files that are hidden.
One of those folders is called .config. Click on that. Then you go to the folder rox.sourceforge.net, and once inside you go to the MIME-types folder.

Inside the MIME-types folder you will find a number of script files. One of those is called image_svg+xml.
Right-click on this file, and a menu will open. Go to -File 'image_svg+xml'-, then go to -Open As Text-.
Now you've opened it in a text editor, and what you see in all likelyhood is this:

Code:
#!/bin/bash
exec defaultdraw "$1"


Replace the exec defaultdraw with inkview so it reads like this:

Code:
#!/bin/bash
inkview "$1"


That's it. Now, if you click on an svg in a ROX window, inkview will show it.

Remember though, you do need to have Inkscape installed.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0490s ][ Queries: 11 (0.0072s) ][ GZIP on ]