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 28 Nov 2014, 23:51
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Viewnior: How can I start mtPaint using 'open with' menu
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Fri 07 Dec 2012, 12:24    Post subject:  Viewnior: How can I start mtPaint using 'open with' menu  

Hello,
using Racy 5.4.2
I would like to be able to start mtPaint to edit the currently
shown picture in Viewnior using its menu-entry 'open with'.

The menu-entry just shows 'defaultimageviewer' and when I
select it, it opens a second instance of Viewnior with the same
image which is quite useless. I would like to have mtPaint there
or maybe another installed program.
I couldn't find a way to change the entries in the 'Open with'
menu of Viewnior. And I didn't find help on the web either.

How can I configure Viewnior this way?

Thank you for your help.
Back to top
View user's profile Send private message 
darkcity


Joined: 23 May 2010
Posts: 2479
Location: near here

PostPosted: Sat 08 Dec 2012, 06:53    Post subject:  

Hi LaRioja,

That is a good question. I know how to configure the Rox filer 'right click' menus and default actions, but can't figure out what sets the Viewnior "open with" menu.

There is a configuration at

/root/.config/viewnior/viewnior.conf

but I can't see any options for adding to the 'open with' option, or indeed, how it knows to add 'defaultimageviewer' (which is pointless as it just opens another viewnior window). One option is that 'open with' is written when viewnior is compiled.

Confused

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 08 Dec 2012, 07:03    Post subject:  

Define the defaultimageviewer script to run mtpaint and create a new default script like defaultimgview and set this to viewnoir.

After this search in /root/Choices/MIME-types for image_xxx files and change defaultimageviewer to defaultimgview inside these MIME-type scripts.

Might be some manually work, but will work.

I did something like this to be able to click a .xcf file to run the RunScripts for the GIMP 1.6.12 SFS and load the Image after the SFS is loaded and GIMP runs.

As we in Germany say: nicht schön, aber selten. Very Happy

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
LaRioja

Joined: 23 Feb 2012
Posts: 20
Location: Augsburg/Germany

PostPosted: Sat 08 Dec 2012, 11:04    Post subject:  

Thank you. It works this way. But it is not elegant, I think.
Where does Viewnior get the information 'defaultimageviewer' from?
I don't think, that it is set at compile time. In Akita Linux (a small Puplet)
Viewnior has in it's 'Open with' (or german '÷ffnen mit') 'empty'.
I guess there must be a .desktop file somewhere to change the
contents of this menu entry that viewnior automatically reads at startup.
And normally it should be possible to place more than one entry under
the menu item 'Open with...'. But how?
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 08 Dec 2012, 11:21    Post subject:  

Which versio do you use?

I have version 1.1 installed. Menu "Open with" shows just "empty" in 1.1 - no entry "defaultimageviewer". So, I can't do what I've suggested.

Laughing

1.1 has a direcctory in /usr/share containing two HTML/XML files (but just for the preferences and crop gui)

No way to edit something like "Open with" in 1.1.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
TwoPuppies


Joined: 29 Dec 2010
Posts: 26
Location: Melbourne, Australia

PostPosted: Thu 30 Oct 2014, 00:19    Post subject:  

An easy alternative method that can be used to edit anything displayed by Viewnior is to drag the image directly from the Viewnior window to the mtPaint icon on the desktop. The image will then open in mtPaint for editing. The same thing will work if you have an icon for the GIMP image editor on the desktop, or indeed any other application that is capable of opening an image. I have just tried dragging images from Viewnior to desktop icons for SeaMonkey, Firefox, AbiWord and LibreOffice Draw, and these all open the image as well (although, strangely, not InkscapeLite).

Incidentally, the same method can be used to copy an image file to another location. Drag an image from the Viewnior window to a directory (or a link to a directory, including a desktop icon) and the image file will be copied there.

_________________
What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.


Last edited by TwoPuppies on Sun 09 Nov 2014, 09:03; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 479
Location: Japan

PostPosted: Thu 30 Oct 2014, 05:05    Post subject:  

I'm not sure if the OP is still around and interested in an answer, but it's an interesting question, so here it goes:
LaRioja wrote:
Where does Viewnior get the information 'defaultimageviewer' from?

From the file /usr/share/applications/defaults.list
Quote:
normally it should be possible to place more than one entry under
the menu item 'Open with...'. But how?

Must be done for each MIME type. Example for JPG/JPEG files:

In defaults.list file change
Code:
image/jpeg=defaultimageviewer.desktop

to
Code:
image/jpeg=mtpaint.desktop;defaultimageviewer.desktop

Note that the first item must be followed immediately by a semicolon and the second item. No spaces allowed.
OpenWith.png
 Description   
 Filesize   104.04 KB
 Viewed   162 Time(s)

OpenWith.png

Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4055
Location: World_Hub

PostPosted: Thu 30 Oct 2014, 05:55    Post subject:  

Thumbs-up for TwoPuppies drag'n drop method. Great for lazy peeps..
_________________
>>>Punctuation Crash Course<<<
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0667s ][ Queries: 13 (0.0064s) ][ GZIP on ]