This file is indexed.

/usr/bin/dispcalGUI-testchart-editor is in dispcalgui 1.7.1.6-1.

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
#! /usr/bin/python
# -*- coding: utf-8 -*-

import sys

if sys.platform == "win32":
	# Setup sys.path for running frozen
	# i.e. add C:\Program Files\dispcalGUI\lib\library.zip
	libpath = "\\".join(sys.executable.replace("/", "\\").split("\\")[:-1]) + "\\library.zip"
	sys.path.insert(0, libpath)

import os

isexe = sys.platform != "darwin" and getattr(sys, "frozen", False)

if sys.platform == "win32" and os.path.isfile(libpath):
	sys.frozen = True

parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(sys.executable if isexe else __file__)))

if not getattr(sys, "frozen", False):
	# Setup sys.path if running from source
	if os.path.exists(os.path.join(parent_dir, "dispcalGUI", "__init__.py")):
		sys.path.insert(0, parent_dir)

from dispcalGUI import config

if getattr(sys, "frozen", False):
	# Add script parent directory to data directories if running frozen
	config.data_dirs.insert(0, parent_dir)

# Python version check
from dispcalGUI.meta import py_minversion, py_maxversion

pyver = sys.version_info[:2]
if pyver < py_minversion or pyver > py_maxversion:
	raise RuntimeError("Need Python version >= %s <= %s, got %s" % 
					   (".".join(str(n) for n in py_minversion),
						".".join(str(n) for n in py_maxversion),
					    sys.version.split()[0]))

from dispcalGUI.wxTestchartEditor import main

argv = []
for arg in sys.argv:
	if arg[0] != "-":
		argv.append(arg)
main(*argv[1:2])