Viewnior 1.6 patched

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

Viewnior 1.6 patched

#1 Post by 666philb »

viewnior is my favourite image viewer... it's fast and opens almost anything.

newer versions of viewnior have an option the set the viewed image as your desktop wallpaper and this works for gnome,lxde,xfce ... etc but not for a puppy which uses ROX and it's own set_bg script.

attached is the patched source of viewnior 1.6 (probably the last gtk2 version) with a working 'set wallpaper' for puppy. files patched are
/src/vnr-prefs.c,
/src/vnr-prefs.h
/src/vnr-window.c
i also removed a few icons and altered the .desktop file.

i haven't made any pets as one compiled in precise won't work on xenial and it's really easy to compile. just install the devx.sfs and...

Code: Select all

./configure --prefix=/usr

Code: Select all

make

Code: Select all

make install
once installed open an image, right click and choose 'set as wallpaper'
tip: run puppies inbuilt wallpaper setter and choose your preferred setting ..stretched, scale, centre or tile.. i recommend stretched. viewnior will then use this setting.

patched source here https://drive.google.com/file/d/0B8-cE8 ... sp=sharing

also, see how to print from viewnior here http://murga-linux.com/puppy/viewtopic. ... 039#916039
Attachments
capture28287.png
(14.1 KiB) Downloaded 443 times
changes made.diff.gz
for future referance
(526 Bytes) Downloaded 199 times
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#2 Post by vicmz »

To be able to set as wallpaper from Viewnior, in the Preferences, select PUPPY as desktop.

Using Viewnior to set a picture as wallpaper does not copy the picture to /usr/share/backgrounds, it uses the path to its current location instead, and creates a backup folder "folderwhereyourpictureis_original". Remember that before moving or deleting the picture.

This is really nice! Thank you, 666philb :D

NOTE:

Also, the partition where the picture is must be always mounted, and the only location in Puppy that is in a partition which is always mounted is /mnt/home, not a problem for those who save their files there. With pictures located in other partitions, Rox-Filer cannot find the picture at start, unless some auto-mount command is executed at bootup or before reaching the graphical desktop.

If the height is longer than the width, the picture is automatically cropped at the area displayed after setting it as wallpaper, and the original picture is saved as ORIGINAL-nameofthepicture at the backup folder mentioned above.
Attachments
wallpaper-unmounted-partition.jpg
(22.62 KiB) Downloaded 351 times
wallpapersize.jpg
(70.6 KiB) Downloaded 349 times
Screenshot_2016-08-04_12.44.43.jpg
(61.54 KiB) Downloaded 402 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

Post Reply