initial commit
This commit is contained in:
commit
31e04306b1
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
res/desktop/simple-apt-update.desktop
|
||||||
|
res/polkit/org.freedesktop.policykit.simple-apt-update.policy
|
41
Makefile
Normal file
41
Makefile
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
NAME=simple-apt-update
|
||||||
|
PREFIX=/usr
|
||||||
|
DESTDIR=
|
||||||
|
BINDIR=$(PREFIX)/bin
|
||||||
|
POLDIR=/usr/share/polkit-1/actions
|
||||||
|
ICONSDIR=/usr/share/icons
|
||||||
|
APPDIR=/usr/share/applications
|
||||||
|
|
||||||
|
all: \
|
||||||
|
res/desktop/$(NAME).desktop \
|
||||||
|
res/polkit/org.freedesktop.policykit.$(NAME).policy
|
||||||
|
|
||||||
|
res/desktop/$(NAME).desktop: \
|
||||||
|
res/desktop/$(NAME).desktop.in
|
||||||
|
sed -e 's|{BINDIR}|$(BINDIR)|' \
|
||||||
|
< res/desktop/$(NAME).desktop.in \
|
||||||
|
> res/desktop/$(NAME).desktop
|
||||||
|
|
||||||
|
res/polkit/org.freedesktop.policykit.$(NAME).policy: \
|
||||||
|
res/polkit/org.freedesktop.policykit.$(NAME).policy.in
|
||||||
|
sed -e 's|{BINDIR}|$(BINDIR)|' \
|
||||||
|
< res/polkit/org.freedesktop.policykit.$(NAME).policy.in \
|
||||||
|
> res/polkit/org.freedesktop.policykit.$(NAME).policy
|
||||||
|
|
||||||
|
install: \
|
||||||
|
bin/$(NAME) \
|
||||||
|
res/desktop/$(NAME).desktop \
|
||||||
|
res/icons/$(NAME).svg \
|
||||||
|
res/polkit/org.freedesktop.policykit.$(NAME).policy
|
||||||
|
install -m 755 \
|
||||||
|
bin/$(NAME) \
|
||||||
|
$(DESTDIR)$(BINDIR)/$(NAME)
|
||||||
|
install -m 644 \
|
||||||
|
res/polkit/org.freedesktop.policykit.$(NAME).policy \
|
||||||
|
$(DESTDIR)$(POLDIR)/org.freedesktop.policykit.$(NAME).policy
|
||||||
|
install -m 644 \
|
||||||
|
res/icons/$(NAME).svg \
|
||||||
|
$(DESTDIR)$(ICONSDIR)/$(NAME).svg
|
||||||
|
install -m 644 \
|
||||||
|
res/desktop/$(NAME).desktop \
|
||||||
|
$(DESTDIR)$(APPDIR)/$(NAME).desktop
|
17
README.md
Normal file
17
README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Simple APT Update
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
A GUI to perform the following tasks of Debian-based package management using APT:
|
||||||
|
|
||||||
|
* Update the package cache
|
||||||
|
* Check for and list all available upgrades
|
||||||
|
* Download and install all available upgrades
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```shell
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
275
bin/simple-apt-update
Executable file
275
bin/simple-apt-update
Executable file
@ -0,0 +1,275 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import selectors
|
||||||
|
import html
|
||||||
|
import gi
|
||||||
|
import apt
|
||||||
|
import apt.progress
|
||||||
|
|
||||||
|
gi.require_version('Gtk', '3.0')
|
||||||
|
gi.require_version('Gdk', '3.0')
|
||||||
|
|
||||||
|
try:
|
||||||
|
from gi.repository import Gdk
|
||||||
|
except ImportError:
|
||||||
|
print("ERROR: Could not import Gdk")
|
||||||
|
|
||||||
|
try:
|
||||||
|
from gi.repository import Gtk
|
||||||
|
except ImportError:
|
||||||
|
print("ERROR: Could not import Gtk")
|
||||||
|
|
||||||
|
|
||||||
|
class AptFetchProgress(apt.progress.base.AcquireProgress):
|
||||||
|
def __init__(self, update_window):
|
||||||
|
super().__init__()
|
||||||
|
self.update_window = update_window
|
||||||
|
|
||||||
|
def done(self, item):
|
||||||
|
super().done(item)
|
||||||
|
self.update_window.append("Done fetching package updates.")
|
||||||
|
|
||||||
|
def fail(self, item):
|
||||||
|
super().fail(item)
|
||||||
|
self.update_window.append(
|
||||||
|
"ERROR: The following item could not be downloaded: %s" % item.uri)
|
||||||
|
|
||||||
|
def fetch(self, item):
|
||||||
|
super().fetch(item)
|
||||||
|
self.update_window.append(
|
||||||
|
"INFO: The following item was downloaded: %s" % item.uri)
|
||||||
|
|
||||||
|
def ims_hit(self, item):
|
||||||
|
super().ims_hit(item)
|
||||||
|
self.update_window.append(
|
||||||
|
"INFO: The following item was found in the cache: %s" % item.uri)
|
||||||
|
|
||||||
|
def media_change(self, str, drive):
|
||||||
|
super().media_change(str, drive)
|
||||||
|
self.update_window.append(
|
||||||
|
"ERROR: Media changes are not supported (str=%s, drive=%s)" %
|
||||||
|
(str, drive))
|
||||||
|
return False
|
||||||
|
|
||||||
|
def pulse(self, owner):
|
||||||
|
super().pulse(owner)
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
class AptInstallProgress(apt.progress.base.InstallProgress):
|
||||||
|
def __init__(self, update_window):
|
||||||
|
super().__init__()
|
||||||
|
self.update_window = update_window
|
||||||
|
self.count = 0
|
||||||
|
|
||||||
|
def conffile(self, current, new):
|
||||||
|
super().conffile(current, new)
|
||||||
|
self.update_window.append_mesg(
|
||||||
|
"WARNING",
|
||||||
|
"The following configuration file was not modified: %s" %
|
||||||
|
current)
|
||||||
|
|
||||||
|
def error(self, pkg, errormsg):
|
||||||
|
super().error(pkg, errormsg)
|
||||||
|
self.update_window.append_mesg(
|
||||||
|
"ERROR",
|
||||||
|
"Installation of package %s failed: %s" % (pkg, errormsg))
|
||||||
|
|
||||||
|
def processing(self, pkg, stage):
|
||||||
|
super().error(pkg, stage)
|
||||||
|
self.update_window.append_mesg(
|
||||||
|
"INFO",
|
||||||
|
"Processing package %s, stage %s" % (pkg, stage))
|
||||||
|
|
||||||
|
def dpkg_status_change(self, pkg, status):
|
||||||
|
super().dpkg_status_change(pkg, status)
|
||||||
|
print("dpkg_status_change: pkg=%s status=%s" % (pkg, status))
|
||||||
|
self.update_window.append_mesg(
|
||||||
|
"INFO",
|
||||||
|
"Package %s is now has status %s" % (pkg, status))
|
||||||
|
|
||||||
|
|
||||||
|
class UpdateWindow(Gtk.ApplicationWindow):
|
||||||
|
def clear(self):
|
||||||
|
self.buffer.set_text("")
|
||||||
|
|
||||||
|
def scroll_to_bottom(self):
|
||||||
|
adj = self.scrolledwindow.get_vadjustment()
|
||||||
|
adj.set_value(adj.get_upper())
|
||||||
|
self.scrolledwindow.set_vadjustment(adj)
|
||||||
|
|
||||||
|
def level_to_color(self, level):
|
||||||
|
if level == "INFO":
|
||||||
|
return "green"
|
||||||
|
elif level == "ERROR":
|
||||||
|
return "red"
|
||||||
|
else:
|
||||||
|
return "grey"
|
||||||
|
|
||||||
|
def prepend_mesg(self, level, text):
|
||||||
|
self.prepend(text)
|
||||||
|
self.prepend_color(level + ": ", self.level_to_color(level))
|
||||||
|
|
||||||
|
def append_mesg(self, level, text):
|
||||||
|
self.append_color(level + ": ", self.level_to_color(level))
|
||||||
|
self.append(text)
|
||||||
|
|
||||||
|
def prepend_markup(self, markup):
|
||||||
|
self.insert_markup(markup, self.buffer.get_start_iter())
|
||||||
|
|
||||||
|
def append_markup(self, markup):
|
||||||
|
self.insert_markup(markup, self.buffer.get_end_iter())
|
||||||
|
|
||||||
|
def insert_markup(self, markup, iter):
|
||||||
|
self.buffer.insert_markup(iter, markup, -1)
|
||||||
|
|
||||||
|
def prepend_color(self, text, color):
|
||||||
|
self.insert_color(text, color, self.buffer.get_start_iter())
|
||||||
|
|
||||||
|
def append_color(self, text, color):
|
||||||
|
self.insert_color(text, color, self.buffer.get_end_iter())
|
||||||
|
|
||||||
|
def insert_color(self, text, color, iter):
|
||||||
|
self.buffer.insert_markup(
|
||||||
|
iter,
|
||||||
|
"<span color=\"%s\">%s</span>" % (color, html.escape(text)),
|
||||||
|
-1)
|
||||||
|
|
||||||
|
def prepend(self, text):
|
||||||
|
self.insert(text, self.buffer.get_start_iter())
|
||||||
|
|
||||||
|
def append(self, text):
|
||||||
|
self.insert(text, self.buffer.get_end_iter())
|
||||||
|
self.scroll_to_bottom()
|
||||||
|
|
||||||
|
def insert(self, text, iter):
|
||||||
|
self.buffer.insert(iter, text + "\n")
|
||||||
|
|
||||||
|
def run(self, args, ignore_stderr=False, output_msg=None, empty_msg=None):
|
||||||
|
p = subprocess.Popen(
|
||||||
|
args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=False)
|
||||||
|
|
||||||
|
sel = selectors.DefaultSelector()
|
||||||
|
sel.register(p.stdout, selectors.EVENT_READ)
|
||||||
|
sel.register(p.stderr, selectors.EVENT_READ)
|
||||||
|
done = False
|
||||||
|
output = False
|
||||||
|
error = False
|
||||||
|
|
||||||
|
while not done:
|
||||||
|
for key, _ in sel.select():
|
||||||
|
data = key.fileobj.read1().decode().rstrip()
|
||||||
|
|
||||||
|
if data:
|
||||||
|
if key.fileobj is p.stdout:
|
||||||
|
self.append(data)
|
||||||
|
output = True
|
||||||
|
elif not ignore_stderr:
|
||||||
|
self.append(data)
|
||||||
|
|
||||||
|
exit_code = p.poll()
|
||||||
|
|
||||||
|
if exit_code is not None:
|
||||||
|
if exit_code != 0:
|
||||||
|
self.append_mesg(
|
||||||
|
"ERROR",
|
||||||
|
"apt-get exit code: %d\n" % exit_code
|
||||||
|
)
|
||||||
|
error = True
|
||||||
|
|
||||||
|
done = True
|
||||||
|
break
|
||||||
|
|
||||||
|
if not error:
|
||||||
|
if output:
|
||||||
|
if output_msg is not None:
|
||||||
|
self.prepend_mesg("INFO", output_msg)
|
||||||
|
elif empty_msg is not None:
|
||||||
|
self.append_mesg("INFO", empty_msg)
|
||||||
|
|
||||||
|
def on_upgrade(self, *args):
|
||||||
|
self.cache.open(None)
|
||||||
|
self.cache.upgrade(True)
|
||||||
|
self.cache.commit(AptFetchProgress(self), AptInstallProgress(self))
|
||||||
|
|
||||||
|
def on_update(self, *args):
|
||||||
|
self.cache.update()
|
||||||
|
self.append_mesg("INFO", "The package cache was updated.")
|
||||||
|
|
||||||
|
def on_list(self, *args):
|
||||||
|
self.run(
|
||||||
|
['/usr/bin/apt', '-qq', 'list', '--upgradable'],
|
||||||
|
ignore_stderr=True,
|
||||||
|
output_msg="Found the following package upgrades:",
|
||||||
|
empty_msg="Currently there are no available package upgrades.")
|
||||||
|
|
||||||
|
def on_ctrl_w(self, *args):
|
||||||
|
self.app.quit()
|
||||||
|
|
||||||
|
def __init__(self, app):
|
||||||
|
super(UpdateWindow, self).__init__(application=app, title="Simple APT Update")
|
||||||
|
self.app = app
|
||||||
|
self.init_ui()
|
||||||
|
|
||||||
|
def init_ui(self):
|
||||||
|
self.set_icon_from_file('/usr/share/icons/simple-apt-update.svg')
|
||||||
|
self.set_border_width(10)
|
||||||
|
self.set_default_size(630, 390)
|
||||||
|
accel = Gtk.AccelGroup()
|
||||||
|
accel.connect(Gdk.keyval_from_name('W'), Gdk.ModifierType.CONTROL_MASK,
|
||||||
|
0, self.on_ctrl_w)
|
||||||
|
accel.connect(Gdk.keyval_from_name('Q'), Gdk.ModifierType.CONTROL_MASK,
|
||||||
|
0, self.on_ctrl_w)
|
||||||
|
self.add_accel_group(accel)
|
||||||
|
|
||||||
|
hbox = Gtk.Box(spacing=6, orientation=Gtk.Orientation.VERTICAL)
|
||||||
|
self.add(hbox)
|
||||||
|
|
||||||
|
self.update_button = Gtk.Button.new_with_label(
|
||||||
|
"Update the Package Cache")
|
||||||
|
self.update_button.connect("clicked", self.on_update)
|
||||||
|
hbox.pack_start(self.update_button, True, True, 0)
|
||||||
|
|
||||||
|
self.upgrade_button = Gtk.Button.new_with_label(
|
||||||
|
"Apply all Package Upgrades")
|
||||||
|
self.upgrade_button.connect("clicked", self.on_upgrade)
|
||||||
|
hbox.pack_start(self.upgrade_button, True, True, 0)
|
||||||
|
|
||||||
|
self.list_button = Gtk.Button.new_with_label(
|
||||||
|
"List available Package Updates")
|
||||||
|
self.list_button.connect("clicked", self.on_list)
|
||||||
|
hbox.pack_start(self.list_button, True, True, 0)
|
||||||
|
|
||||||
|
self.scrolledwindow = Gtk.ScrolledWindow()
|
||||||
|
self.scrolledwindow.set_hexpand(True)
|
||||||
|
self.scrolledwindow.set_vexpand(True)
|
||||||
|
self.scrolledwindow.set_min_content_height(300)
|
||||||
|
self.scrolledwindow.set_max_content_height(300)
|
||||||
|
self.buffer = Gtk.TextBuffer()
|
||||||
|
|
||||||
|
text_view = Gtk.TextView(buffer=self.buffer)
|
||||||
|
text_view.set_editable(False)
|
||||||
|
text_view.set_cursor_visible(False)
|
||||||
|
|
||||||
|
self.scrolledwindow.add(text_view)
|
||||||
|
hbox.pack_start(self.scrolledwindow, True, True, 0)
|
||||||
|
|
||||||
|
self.cache = apt.Cache()
|
||||||
|
self.cache.update()
|
||||||
|
self.append_mesg("INFO", "The package cache was updated.")
|
||||||
|
|
||||||
|
self.on_update()
|
||||||
|
self.clear()
|
||||||
|
self.on_list()
|
||||||
|
|
||||||
|
|
||||||
|
def on_activate(app):
|
||||||
|
win = UpdateWindow(app)
|
||||||
|
win.present()
|
||||||
|
win.show_all()
|
||||||
|
|
||||||
|
|
||||||
|
app = Gtk.Application(application_id='org.linuxfoo.SimpleAptUpdate')
|
||||||
|
app.connect('activate', on_activate)
|
||||||
|
app.run(None)
|
7
res/desktop/simple-apt-update.desktop.in
Normal file
7
res/desktop/simple-apt-update.desktop.in
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Simple APT Update
|
||||||
|
Exec=/usr/bin/pkexec --user root {BINDIR}/simple-apt-update
|
||||||
|
Comment=Peform Package Updates using APT
|
||||||
|
Terminal=false
|
||||||
|
Icon=simple-apt-update
|
||||||
|
Type=Application
|
40
res/icons/simple-apt-update.svg
Normal file
40
res/icons/simple-apt-update.svg
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!--part of the matt icon theme by sixsixfive released under CC0 (https://creativecommons.org/publicdomain/zero/1.0/) on openclipart-->
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 128 128">
|
||||||
|
<defs id="0">
|
||||||
|
<linearGradient id="6">
|
||||||
|
<stop id="H" stop-opacity="0.306"/>
|
||||||
|
<stop offset="1" id="I" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="7">
|
||||||
|
<stop id="J" stop-opacity="0.754"/>
|
||||||
|
<stop offset="1" id="K" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="8">
|
||||||
|
<stop id="L" stop-color="#969696"/>
|
||||||
|
<stop offset="1" id="M" stop-color="#7b7b7b"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="9">
|
||||||
|
<stop id="N" stop-color="#d6d6d6"/>
|
||||||
|
<stop offset="1" id="O" stop-color="#bcbcbc"/>
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient id="A">
|
||||||
|
<stop id="P" stop-color="#fff"/>
|
||||||
|
<stop id="Q" offset="0.099" stop-color="#fff" stop-opacity="0.28"/>
|
||||||
|
<stop offset="1" id="R" stop-color="#fff" stop-opacity="0"/>
|
||||||
|
</linearGradient>
|
||||||
|
<radialGradient xlink:href="#9" id="B" cx="72.06" cy="39.09" r="55.29" gradientTransform="matrix(1.0158202,-0.1265619,0.1233367,0.9899345,-5.960866,9.5726837)" gradientUnits="userSpaceOnUse"/>
|
||||||
|
<linearGradient xlink:href="#8" id="C" y1="5.062" x2="0" y2="122.29" gradientUnits="userSpaceOnUse"/>
|
||||||
|
<radialGradient xlink:href="#7" id="D" cx="64.47" cy="123.18" r="36.15" gradientTransform="matrix(1,0,0,0.1021597,0,110.59188)" gradientUnits="userSpaceOnUse"/>
|
||||||
|
<filter id="E" x="-0.057" width="1.114" y="-0.897" height="2.795">
|
||||||
|
<feGaussianBlur stdDeviation="1.63995" id="S"/>
|
||||||
|
</filter>
|
||||||
|
<radialGradient xlink:href="#6" id="F" cx="68.18" cy="125.16" r="55.29" gradientTransform="matrix(0.9999658,-8.2732372e-3,1.2111425e-2,1.4638781,-1.1101262,-42.162074)" gradientUnits="userSpaceOnUse"/>
|
||||||
|
<linearGradient xlink:href="#A" id="G" y1="8.719" x2="0" y2="118.59" gradientUnits="userSpaceOnUse"/>
|
||||||
|
</defs>
|
||||||
|
<path id="1" d="M 99.12281,123.17544 A 34.649124,2.1929824 0 1 1 29.824562,123.17544 A 34.649124,2.1929824 0 1 1 99.12281,123.17544 z" transform="matrix(1.7335396,0,0,1.776976,-47.767688,-97.518674)" opacity="0.729" fill="url(#D)" filter="url(#E)" stroke-linejoin="round" stroke-width="3"/>
|
||||||
|
<path id="2" d="M 81.53125,5.0625 C 80.012371,5.0317137 78.459738,5.7474636 77.625,6.96875 C 77.624953,6.9791666 77.624953,6.9895834 77.625,7 L 68.6875,20.125 C 66.293801,19.919124 63.872046,19.924571 61.4375,20.125 L 52.15625,7.53125 C 51.035342,6.0057061 48.679084,5.2975765 46.84375,6.0625 L 36.40625,10.40625 C 34.436767,11.22709 33.307877,13.283592 33.71875,15.40625 L 36.59375,30.4375 C 34.82634,31.965221 33.219714,33.626132 31.75,35.375 L 16.09375,33.03125 C 14.21147,32.745339 12.113645,33.712045 11.28125,35.71875 L 6.9375,46.15625 C 6.9270171,46.1666 6.9166002,46.177017 6.90625,46.1875 C 6.0237532,48.31833 6.8056177,50.447781 8.59375,51.65625 L 21.53125,60.375 C 21.362663,62.963245 21.425741,65.550234 21.71875,68.125 L 9.4375,77.0625 C 9.4270171,77.07285 9.4166002,77.083267 9.40625,77.09375 C 7.7629238,78.300351 7.0441021,80.400176 7.90625,82.46875 L 9.78125,86.96875 L 11.59375,91.40625 C 11.6041,91.416733 11.614517,91.42715 11.625,91.4375 C 12.540538,93.634188 14.437031,94.486598 16.53125,94.15625 C 16.541667,94.156297 16.552083,94.156297 16.5625,94.15625 L 31.5625,91.75 C 33.185169,93.758047 34.96495,95.599042 36.90625,97.28125 L 34,112.59375 C 33.598995,114.71665 34.598039,116.7886 36.71875,117.65625 L 47.1875,121.9375 C 49.23552,122.77407 51.346462,122.04186 52.5625,120.375 L 61.875,107.65625 C 64.135567,107.84502 66.432193,107.83107 68.75,107.65625 L 77.40625,120.3125 C 78.661422,122.15281 80.883533,122.74928 82.90625,121.90625 L 93.34375,117.5625 C 95.340326,116.73037 96.331656,114.62732 96.03125,112.71875 L 93.625,97.28125 C 95.481421,95.688847 97.181565,93.969926 98.71875,92.125 L 114.3125,95.0625 C 114.32292,95.062547 114.33333,95.062547 114.34375,95.0625 C 116.31285,95.423743 118.32121,94.284677 119.15625,92.5625 L 119.1875,92.59375 L 119.21875,92.53125 C 119.24084,92.47968 119.26168,92.427581 119.28125,92.375 C 119.30259,92.344091 119.32343,92.312836 119.34375,92.28125 L 123.46875,82.15625 L 123.5,82.125 C 123.5573,82.023525 123.60945,81.919226 123.65625,81.8125 C 123.76638,81.544688 123.88174,81.176171 123.9375,80.8125 C 124.2106,79.032133 123.41988,77.438151 122.09375,76.46875 L 109.15625,67.03125 C 109.35598,64.947857 109.38959,62.846032 109.28125,60.71875 L 122.1875,51.875 C 124.10182,50.570207 124.54191,48.274988 123.75,46.375 L 121.28125,40.4375 L 118.8125,34.53125 C 118.01226,32.611195 116.0833,31.37221 113.8125,31.8125 L 98.46875,34.75 C 97.040356,33.176473 95.495441,31.736933 93.875,30.40625 L 96.3125,14.53125 C 96.586174,12.718045 95.763902,11.129454 94.46875,10.1875 C 94.028834,9.8675133 93.56027,9.6865812 93.5625,9.6875 C 93.5314,9.6766385 93.500147,9.6662208 93.46875,9.65625 L 93.34375,9.625 L 83.34375,5.5 L 83.28125,5.46875 C 83.219709,5.4356174 83.157181,5.4043531 83.09375,5.375 C 83.073022,5.3643737 83.052188,5.3539565 83.03125,5.34375 C 82.56107,5.1524705 82.037543,5.0727621 81.53125,5.0625 z M 65.59375,47.25 C 72.0069,47.284961 78.118207,51.060486 80.75,57.375 C 84.259756,65.796026 80.270215,75.394229 71.84375,78.90625 C 63.417125,82.418337 53.82355,78.455386 50.3125,70.03125 C 46.800412,61.604626 50.763365,52.01105 59.1875,48.5 C 61.283542,47.626402 63.452468,47.238327 65.59375,47.25 z" fill="url(#C)"/>
|
||||||
|
<path d="M 37.743827,13.586918 C 37.291812,13.775309 37.031625,14.281161 37.124481,14.760875 L 40.384337,31.718699 C 37.609247,33.863984 35.178223,36.37347 33.0953,39.094773 L 15.606406,36.454412 C 15.135419,36.38287 14.649048,36.634626 14.466798,37.073987 L 10.138469,47.505995 C 9.9509101,47.958866 10.122468,48.514788 10.528755,48.789368 L 25.071655,58.586331 C 24.61969,62.238027 24.751171,66.025546 25.339726,69.753701 L 11.479891,79.868381 C 11.095897,80.150323 10.909732,80.697741 11.093284,81.138142 L 12.958959,85.614496 L 14.824635,90.09085 C 15.008184,90.531248 15.528027,90.784421 15.998591,90.710193 L 32.939358,87.987657 C 35.172752,91.030268 37.770087,93.790056 40.681707,96.039863 L 37.401327,113.26529 C 37.310306,113.74714 37.584347,114.26035 38.038017,114.44596 L 48.493977,118.71611 C 48.934317,118.89598 49.455517,118.7278 49.736287,118.34294 L 60.173267,104.06351 C 63.572317,104.50002 67.065987,104.54018 70.543237,104.07958 L 80.291757,118.33302 C 80.567077,118.73669 81.109507,118.90802 81.561517,118.71963 L 91.992657,114.37209 C 92.430857,114.18946 92.662177,113.72729 92.588047,113.25632 L 89.909967,95.959623 C 92.772637,93.748499 95.270657,91.180845 97.394067,88.357649 L 114.95831,91.64142 C 115.44091,91.729954 115.90907,91.475254 116.09792,91.021845 L 116.12187,90.963661 L 120.36806,80.565885 L 120.43308,80.490585 C 120.46364,80.416273 120.47617,80.350943 120.48782,80.274967 C 120.54516,79.901164 120.39655,79.522916 120.07703,79.289347 L 105.53062,68.674423 C 105.99202,65.464222 106.0876,62.18593 105.74525,58.896513 L 120.228,49.004225 C 120.63147,48.729224 120.74452,48.161812 120.55642,47.710513 L 118.09168,41.796798 L 115.62693,35.883082 C 115.43884,35.431787 114.95628,35.112614 114.47693,35.205556 L 97.255587,38.527048 C 95.160447,35.968164 92.764917,33.72813 90.160207,31.795837 L 92.862137,13.992072 C 92.921207,13.600709 92.757187,13.228888 92.451347,13.006453 C 92.389187,12.961239 92.333967,12.924144 92.259677,12.893532 L 92.160427,12.886697 L 81.786607,8.5823195 L 81.728417,8.5583683 C 81.273467,8.3732857 80.762977,8.5264708 80.486117,8.9315382 L 70.453027,23.717454 C 66.953117,23.237972 63.370957,23.204441 59.785307,23.680878 L 49.386537,9.6020375 C 49.104237,9.2178313 48.613167,9.0567459 48.174957,9.2393814 L 37.743827,13.586918 z M 57.857227,45.307422 C 68.013047,41.074635 79.690757,45.881731 83.923547,56.037551 C 88.156337,66.193371 83.349237,77.871085 73.193417,82.103874 C 63.037597,86.336664 51.359887,81.529566 47.127097,71.373745 C 42.894307,61.217926 47.701407,49.540212 57.857227,45.307422 z" id="3" fill="url(#B)"/>
|
||||||
|
<path id="4" d="M 37.743827,13.586918 C 37.291812,13.775309 37.031625,14.281161 37.124481,14.760875 L 40.384337,31.718699 C 37.609247,33.863984 35.178223,36.37347 33.0953,39.094773 L 15.606406,36.454412 C 15.135419,36.38287 14.649048,36.634626 14.466798,37.073987 L 10.138469,47.505995 C 9.9509101,47.958866 10.122468,48.514788 10.528755,48.789368 L 25.071655,58.586331 C 24.61969,62.238027 24.751171,66.025546 25.339726,69.753701 L 11.479891,79.868381 C 11.095897,80.150323 10.909732,80.697741 11.093284,81.138142 L 12.958959,85.614496 L 14.824635,90.09085 C 15.008184,90.531248 15.528027,90.784421 15.998591,90.710193 L 32.939358,87.987657 C 35.172752,91.030268 37.770087,93.790056 40.681707,96.039863 L 37.401327,113.26529 C 37.310306,113.74714 37.584347,114.26035 38.038017,114.44596 L 48.493977,118.71611 C 48.934317,118.89598 49.455517,118.7278 49.736287,118.34294 L 60.173267,104.06351 C 63.572317,104.50002 67.065987,104.54018 70.543237,104.07958 L 80.291757,118.33302 C 80.567077,118.73669 81.109507,118.90802 81.561517,118.71963 L 91.992657,114.37209 C 92.430857,114.18946 92.662177,113.72729 92.588047,113.25632 L 89.909967,95.959623 C 92.772637,93.748499 95.270657,91.180845 97.394067,88.357649 L 114.95831,91.64142 C 115.44091,91.729954 115.90907,91.475254 116.09792,91.021845 L 116.12187,90.963661 L 120.36806,80.565885 L 120.43308,80.490585 C 120.46364,80.416273 120.47617,80.350943 120.48782,80.274967 C 120.54516,79.901164 120.39655,79.522916 120.07703,79.289347 L 105.53062,68.674423 C 105.99202,65.464222 106.0876,62.18593 105.74525,58.896513 L 120.228,49.004225 C 120.63147,48.729224 120.74452,48.161812 120.55642,47.710513 L 118.09168,41.796798 L 115.62693,35.883082 C 115.43884,35.431787 114.95628,35.112614 114.47693,35.205556 L 97.255587,38.527048 C 95.160447,35.968164 92.764917,33.72813 90.160207,31.795837 L 92.862137,13.992072 C 92.921207,13.600709 92.757187,13.228888 92.451347,13.006453 C 92.389187,12.961239 92.333967,12.924144 92.259677,12.893532 L 92.160427,12.886697 L 81.786607,8.5823195 L 81.728417,8.5583683 C 81.273467,8.3732857 80.762977,8.5264708 80.486117,8.9315382 L 70.453027,23.717454 C 66.953117,23.237972 63.370957,23.204441 59.785307,23.680878 L 49.386537,9.6020375 C 49.104237,9.2178313 48.613167,9.0567459 48.174957,9.2393814 L 37.743827,13.586918 z M 57.857227,45.307422 C 68.013047,41.074635 79.690757,45.881731 83.923547,56.037551 C 88.156337,66.193371 83.349237,77.871085 73.193417,82.103874 C 63.037597,86.336664 51.359887,81.529566 47.127097,71.373745 C 42.894307,61.217926 47.701407,49.540212 57.857227,45.307422 z" fill="url(#F)"/>
|
||||||
|
<path id="5" d="M 81.5625,10.21875 L 71.75,24.625 C 71.410855,25.125524 70.818151,25.391636 70.21875,25.3125 C 66.85521,24.851699 63.440269,24.82413 60,25.28125 C 59.417375,25.354909 58.841324,25.102887 58.5,24.625 L 48.375,10.90625 L 38.78125,14.90625 L 41.9375,31.40625 C 42.049679,31.997343 41.820166,32.601323 41.34375,32.96875 C 38.689326,35.020754 36.382461,37.439786 34.375,40.0625 C 34.020593,40.539466 33.430691,40.780243 32.84375,40.6875 L 15.75,38.125 L 11.78125,47.6875 L 25.96875,57.28125 C 26.458453,57.614982 26.723114,58.192424 26.65625,58.78125 C 26.225873,62.258524 26.337312,65.896109 26.90625,69.5 C 26.998993,70.086941 26.758216,70.676843 26.28125,71.03125 L 12.75,80.90625 L 14.4375,85 C 14.437602,85.010416 14.437602,85.020834 14.4375,85.03125 L 16.125,89.09375 L 32.6875,86.4375 C 33.274441,86.344757 33.864343,86.585534 34.21875,87.0625 C 36.37214,89.996121 38.876153,92.633071 41.65625,94.78125 C 42.132666,95.148677 42.362179,95.752657 42.25,96.34375 L 39.0625,113.15625 L 48.6875,117.09375 L 58.90625,103.125 C 59.247574,102.64711 59.823625,102.39509 60.40625,102.46875 C 63.686119,102.88995 66.988763,102.94027 70.3125,102.5 C 70.911901,102.42086 71.504605,102.68698 71.84375,103.1875 L 81.34375,117.09375 L 90.96875,113.0625 L 88.34375,96.21875 C 88.256047,95.64819 88.483051,95.074708 88.9375,94.71875 C 91.680542,92.600026 94.083445,90.089365 96.125,87.375 C 96.492427,86.898584 97.096407,86.669071 97.6875,86.78125 L 114.8125,90 L 118.78125,80.3125 L 104.59375,69.96875 C 104.11586,69.627426 103.86384,69.051375 103.9375,68.46875 C 104.3817,65.378184 104.48397,62.211395 104.15625,59.0625 C 104.10133,58.484333 104.36459,57.921921 104.84375,57.59375 L 118.9375,47.9375 L 116.625,42.40625 L 114.3125,36.875 L 97.5625,40.09375 C 96.977469,40.213051 96.374747,39.996071 96,39.53125 C 93.990773,37.077294 91.721205,34.918936 89.21875,33.0625 C 88.730038,32.715631 88.476638,32.124365 88.5625,31.53125 L 91.21875,14.1875 L 81.5625,10.21875 z M 65.625,42.1875 C 74.015976,42.233243 81.981635,47.189501 85.40625,55.40625 C 89.972083,66.361142 84.764888,78.997714 73.8125,83.5625 C 62.860181,88.127257 50.221485,82.953462 45.65625,72 C 41.091492,61.047681 46.265289,48.408985 57.21875,43.84375 C 59.961718,42.700524 62.82965,42.172262 65.625,42.1875 z" fill="none" stroke="url(#G)" stroke-width="3"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 13 KiB |
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE policyconfig PUBLIC
|
||||||
|
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
|
||||||
|
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
|
||||||
|
<policyconfig>
|
||||||
|
<action id="org.freedesktop.policykit.pkexec.simple-apt-update">
|
||||||
|
<description>Run simple-apt-update program</description>
|
||||||
|
<message>Authentication is required to run Simple APT Update</message>
|
||||||
|
<icon_name>simple-apt-update</icon_name>
|
||||||
|
<defaults>
|
||||||
|
<allow_any>auth_admin</allow_any>
|
||||||
|
<allow_inactive>auth_admin</allow_inactive>
|
||||||
|
<allow_active>auth_admin</allow_active>
|
||||||
|
</defaults>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.path">{BINDIR}/simple-apt-update</annotate>
|
||||||
|
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
|
||||||
|
</action>
|
||||||
|
</policyconfig>
|
Loading…
Reference in New Issue
Block a user