This file is indexed.

/usr/share/icons/GartoonRedux/fix-logo.pl is in gnome-icon-theme-gartoon-redux 1.10-0ubuntu3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/perl -w
#
# fix-logo.pl
# (C) 2008-2009 Krzysztof KosiƄski
# Released under GNU GPL v2 or later; see the file COPYING for details
#
# Fix the distributor logo based on the output of lsb_release.

use Switch;

$icondir = '/usr/share/icons/GartoonRedux';
%distro_hash = (
	'ubuntu' => '../extras/distribution-ubuntu',
	'edubuntu' => '../extras/distribution-edubuntu',
	'xubuntu' => '../extras/distribution-xubuntu',
	'fedora' => '../extras/distribution-fedora',
	'arch linux' => '../extras/distribution-arch-linux',
	'gentoo' => '../extras/distribution-gentoo'
);

foreach (@ARGV) {
	if (/^--icondir=(.*)$/) { $icondir = $1; }
}

$distribution = `lsb_release -si`;
chomp $distribution;
$dist = lc($distribution);

if ($dist eq 'ubuntu') {
	if (check_deb_package('xubuntu-desktop')) {
		$dist = 'xubuntu';
	}
	elsif (check_deb_package('edubuntu-desktop')) {
		$dist = 'edubuntu';
	}
}

$logo = $distro_hash{$dist};
if (!$logo) { exit 0; }

# Fix the scalable logo
$target_scalable = "$icondir/scalable/places/distributor-logo.svg";
unlink ($target_scalable);
symlink ("$logo.svg", $target_scalable);
#print "$logo.svg -> $target_scalable\n";

# Fix the rendered logos
@sizes = `find $icondir -mindepth 1 -maxdepth 1 -type d -printf '%P\n'`;
foreach (@sizes) {
	next if m/^scalable$/;
	chomp;
	$target = "$icondir/${_}/places/distributor-logo.png";
	unlink ($target);
	symlink ("$logo.png", $target);
	#print "$logo.png -> $target\n";
}

sub check_deb_package {
	$name = shift;
	$status = `dpkg-query -Wf '\${Status}' $name 2>/dev/null`;
	if ($status =~ m/^install\b/) { return 1; }
	else { return 0; }
}