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 Sun 22 Apr 2018, 22:36
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to print from viewnior and other options
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
666philb


Joined: 07 Feb 2010
Posts: 3170
Location: wales

PostPosted: Sat 30 Jul 2016, 18:48    Post subject:  How to print from viewnior and other options  

viewnior is the default image viewer in many pups but it doesn't have a print option. it does however have an 'open with' option and with a bit of setting up you can use this to send the image to peasyprint or gtklp or your defaultpaint progam.
-----------------------------------------------------
solution 1 (works in most pups)

open /usr/share/applications/defaults.list and edit the image lines. this example will add defaultpaint gtklp and peasyprint to the 'open with' options (you may need to restart x for it to work)
Code:
image/bmp=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/gif=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/jpeg=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/png=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/svg=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/svg+xml=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/tiff=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/x-pixmap=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/x-png=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/x-xpixmap=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop
image/x-portable-anymap=defaultimageviewer.desktop;defaultpaint.desktop;gtklp.desktop;peasyprint.desktop

------------------------------------------------------------------
solution 2 (the above doesn't work in xenial so...)

1 first off copy /usr/share/applications/defaults.list somewhere safe as it gets overwritten by the next step......
2 install 'desktop-file-utilities' from the ppm (use the find box)
3 once installed copy your defaults.list back to /usr/share/applications/

4 we'll use peasyprint as an example so open /usr/share/applications/peasyprint.desktop in geany and add the 'MimeType' line. the same line can be added to 'gtklp.desktop' or 'defaultpaint.desktop' or any program you wish to be an option in the openwith menu;
Code:
[Desktop Entry]
Encoding=UTF-8
Name=PeasyPrint graphic/photo printing
GenericName=PeasyPrint
Comment=PeasyPrint graphic/photo printing
Exec=/usr/sbin/peasyprint
Icon=/usr/share/pixmaps/peasyprint.png
Terminal=false
Type=Application
StartupNotify=false
Categories=X-GraphicUtility
MimeType=image/gif;image/jpeg;image/png;image/svg;image/svg+xml;image/tiff;image/x-pixmap;image/x-png;image/x-xpixmap;image/x-portable;


5 now open a terminal and run
Code:
update-desktop-database /usr/share/applications

peasyprint should now show in viewniors 'openwith' menu
--------------------------------------------------
see here for allowing viewnior to set the desktop wallpaper http://murga-linux.com/puppy/viewtopic.php?t=107707
----------------------------------------------------
openwith.jpg
 Description   
 Filesize   139.7 KB
 Viewed   333 Time(s)

openwith.jpg


_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Last edited by 666philb on Sun 31 Jul 2016, 04:47; edited 4 times in total
Back to top
View user's profile Send private message 
Sailor Enceladus

Joined: 22 Feb 2016
Posts: 1475

PostPosted: Sat 30 Jul 2016, 19:03    Post subject:  

That xerus smile cracks me up
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
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.0382s ][ Queries: 12 (0.0119s) ][ GZIP on ]