/usr/lib/luma/plugins/admin_utils/admin_utilities_plugin.py is in luma 2.4-3.
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 | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (C) 2003 by Wido Depping
# <widod@users.sourceforge.net>
#
# Copyright: See COPYING file that comes with this distribution
#
###########################################################################
from qt import *
import os.path
from plugins.admin_utils.AdminPanel import AdminPanel
class TaskPlugin(object):
def __init__(self):
self.pluginName = "Admin Utilities"
self.pluginPath = ""
self.pluginIconPath = ""
self.pluginWidget = None
###############################################################################
def postprocess (self):
pass
###############################################################################
def getIcon(self):
try:
iconPixmap = QPixmap (os.path.join(self.pluginIconPath, "admin_utils.png"))
except:
print "Debug: Icon could not be opened."
return iconPixmap
###############################################################################
def getPluginWidget(self, parent):
self.pluginWidget = AdminPanel(parent)
return self.pluginWidget
###############################################################################
def getPluginSettingsWidget(self, parent):
return
|