| Author |
Message |
LaRioja
Joined: 23 Feb 2012 Posts: 20 Location: Augsburg/Germany
|
Posted: 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
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: 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.
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: 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.
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
LaRioja
Joined: 23 Feb 2012 Posts: 20 Location: Augsburg/Germany
|
Posted: 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
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: 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.
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.
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
|