r/linux • • Mar 21 '16

"Visual blindness" of Linux programmers

I mean, you can hardly see any screenshots on Github or other pages at all. I would say 90% of the projects lack any screenshot, animated gif or, Penguin forbid, video.

And this goes to not only GUI programs but TUI programs too. I mean, making a screenshot on Linux in 2016 is a trivial thing and still the visual blindness and ignorance of the visual presentation is... very big ;)

Please, even if you are "visually blind" programmer, consider uploading at least one screenshot per your program, even if it is a text based program. The others aka "unblinders" will appreciate that. Thanks.

1.3k Upvotes

476 comments sorted by

View all comments

647

u/[deleted] Mar 21 '16

I mean, you can hardly see any screenshots on Github or other pages at all. I would say 90% of the projects lack any screenshot, animated gif or, Pinguin forbid, video.

This annoys me to no ends, especially if it's like a gtk2 theme on github.

318

u/TheFeshy Mar 21 '16

I forgot about themes with no screen shots. That's even worse than the fonts with no screenshots I was thinking of.

157

u/manys Mar 21 '16

Just go to xfce-look.org where you can view all of the 40x40px screenshots you can handle.

42

u/killersteak Mar 22 '16

Does nobody else have the same trouble with the *look sites, where if you click to zoom in on a picture, it comes up in a box with scroll bars, but the scroll bars don't work, and the scroll wheel only moves the page in the background up and down, not the picture you clicked on?

32

u/shvelo Mar 22 '16

*look sites are all stuck in the 90s

12

u/killersteak Mar 22 '16

I could get over that if they were functional. Some thumbnails work, most don't. Deviantart is almost a better option for finding themes and icons.

4

u/GiraffixCard Mar 22 '16

I have found that using the scroll wheel with the pointer in the center of the image will cause it to scroll correctly. It's some javascript thing with stupidly oversized margins iirc.

→ More replies (1)
→ More replies (2)

15

u/punaisetpimpulat Mar 22 '16

Ooh 40x40! That's very generous. I wonder why they didn't go with the obviously leaner 10x10 screenshots.

6

u/expert-at-nothing Mar 22 '16 edited Mar 22 '16

Here is how you fix that client-side:

// ==UserScript==
// @name           *-look.org thumbnail enlarger
// @author         Nigglypuff
// @namespace      meta.ironi.st
// @include        http://gnome-look.org*
// @include        http://*.gnome-look.org*
// @include        http://kde-look.org*
// @include        http://*.kde-look.org*
// @include        http://xfce-look.org*
// @include        http://*.xfce-look.org*
// @include        http://box-look.org*
// @include        http://*box-look.org*
// ==/UserScript==

var thumbnailPath = '/CONTENT/content-m1/m',
	fullSizePath = '/CONTENT/content-pre1/';

function fixImageExtension(url, callback) {
	// remove extension from original url
	url = url.slice(0, -3);
	
	var extensions = ['jpg', 'gif', 'png'];
	
	function tryNextExtension(){
		var extension = extensions.shift();
		
		if (extension) {
			testImageExists(url + extension, function (exists) {
				if (exists) {
					callback(url + extension);
				} else {
					tryNextExtension();
				}
			});
		} else {
			callback(null);
		}
	};
	
	tryNextExtension();
	
};

function testImageExists(url, callback) {
	var testImg = document.createElement('img');
	
	testImg.addEventListener('load', function () {
		callback(true);
	}, false);
	
	testImg.addEventListener('error', function () {
		callback(false);
	}, false);
	
	testImg.src = url;
};

[].forEach.call(document.images, function(img) {
	var thumbnailName = img.src.split(thumbnailPath)[1];
	
	if (thumbnailName) {
		img.style.maxWidth = '300px';
		fixImageExtension(fullSizePath + thumbnailName, function(fixedUrl) {
			if (fixedUrl) img.src = fixedUrl;
		});
	}
});

Personally, I add the following for a little more UI cleanup:

function getElementByXpath(path) {
  return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}

var myEl = getElementByXpath('/html/body/table[2]/tbody/tr/td[2]/table/tbody/tr[2]/td/table/tbody/tr/td[5]');
myEl.style.display = 'none';

var myEl = getElementByXpath('/html/body/table[2]/tbody/tr/td[2]/table/tbody/tr[2]/td/table/tbody/tr/td[4]');
myEl.style.display = 'none';

21

u/XorFish Mar 21 '16

At least with fonts there are also those that make it right:

http://sourcefoundry.org/hack/

24

u/punking_funk Mar 21 '16

You know, I didn't even think that people got stuff directly from Github, seeing as how it's stuff that's usually in development and would probably break. I'll make sure to add screenshots to my themes and software now.

42

u/beardedlinuxgeek Mar 21 '16

They have tags, branches, releases, etc on github. If you're getting something from v2.0.0-final then it's not in development

9

u/tso Mar 21 '16

And yet they can't seem to form a proper tarball. Whenever I try to grab one from there I only get the version number as part of the filename not a proper name-x.y.z.

11

u/Michaelmrose Mar 22 '16

Git clone check out tag build

→ More replies (1)

9

u/[deleted] Mar 21 '16

Yeah I mean if you're looking for new and fancy stuff you might probably Gary it from github directly especially if it's a small project that has no page no packets etc.

26

u/peckhamspring Mar 21 '16

I always Gary things from github.

4

u/[deleted] Mar 22 '16

Gotta love autocorrect :D

→ More replies (2)

5

u/12358 Mar 22 '16

I find it puzzling and irritating that font examples show abcdefgh when what I really care about are the similar looking and often mistaken letters and numbers 1lI and O0.

8

u/f4hy Mar 22 '16

Wow yes I just had this problem. I wanted to change my lightdm theme and found lists to choose from with zero screenshots indicating what they looked like. No idea how to pick one.

I'm not sure I cafe as much as the OP about screenshots for text programs... But themes... Should be required.

→ More replies (3)

7

u/zman0900 Mar 22 '16

I want to see some screenshots of glibc.

22

u/hatperigee Mar 21 '16

There's a perfectly good reason for this in some cases.. If development is moving fast enough such that screenshots/videos would be outdated in a week, then it's actually more harmful than not having screenshots/videos.

57

u/coshibu Mar 21 '16

just write a script

90

u/hatperigee Mar 21 '16

On the flip side, I'm sure most developers would accept a pull request by you to add screenshots.

→ More replies (14)

26

u/dewmsolo Mar 21 '16

When comitting somethings that changes UI add a new screenshot along with it? maybe?

→ More replies (21)
→ More replies (4)
→ More replies (3)