This file is indexed.

/usr/share/kde4/apps/tagua/scripts/piece_theme.lua is in tagua-data 1.0~alpha2-15.

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

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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
function addShadow(func)
  return function(size, args)
    local isz = math.floor( size*100/(100+shadow_grow) + 0.5)
    local offx = shadow_offset_x*isz/200
    local offy = shadow_offset_y*isz/200
    local i = func(isz, args)
    local s = i:create_shadow( shadow*isz/100, shadow_color,
                                  Point(size-isz, size-isz),
                                  Point(offx, offy) )
    s:draw_image(Rect((size-isz)/2-offx, (size-isz)/2-offy,isz,isz), i, Rect(0,0,isz,isz))
    return s
  end
end

function fromSVG_Direct(file)
  return function(size, args)
    local i = Image(size,size)
    i:clear()
    i:draw_svg(Rect(0,0,size,size), file)
    return i
  end
end

function fromSVG(file)
  if shadow then
    return addShadow(fromSVG_Direct(file))
  else
    return fromSVG_Direct(file)
  end
end

function fromFontGlyph_Direct(...)
  local t = (function(...) return ... end):partial(...)
  return function(size, args)
    local i = Image(size,size)
    i:clear()
    i:draw_glyph(Rect(0,0,size,size), t())
    return i
  end
end

-- function fromFontGlyph_Direct(file, glyph, fg, bg, border, draw_inner_bg)
--   return function(size)
--     local i = Image(size,size)
--     i:clear()
--     i:draw_glyph(Rect(0,0,size,size), file, glyph, fg, bg, border, draw_inner_bg)
--     return i
--   end
-- end

function fromFontGlyph(...)
  if shadow then
    return addShadow(fromFontGlyph_Direct(...))
  else
    return fromFontGlyph_Direct(...)
  end
end

function fromPixmap(file)
  return function(size, args)
    local i = Image(size,size)
    i:set_paint_over(false)
    i:draw_image(Rect(0,0,size,size), file)
    return i
  end
end

function fromColor(color)
  return function(size, args)
    local i = Image(size,size)
    i:clear(color)
    return i
  end
end

function overlay(func1,func2,...)
   if func2 then
      return overlay(function(size, args)
        return func2(func1(size, args), size, args)
          end, ...)
   else
      return func1
   end
end