move files to /usr/share

This commit is contained in:
djcj 2014-08-06 04:50:51 +02:00
parent 4ab8ead0dd
commit ab5f88b430
4 changed files with 6 additions and 6 deletions

View File

@ -834,7 +834,7 @@ class pluginclass( object ):
else: else:
shownList.append(i) shownList.append(i)
showns = True showns = True
if (not showns and os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg")): if (not showns and os.path.exists("/usr/share/linuxmint/mintInstall/icon.svg")):
if len(text) >= 3: if len(text) >= 3:
if self.current_suggestion is not None and self.current_suggestion in text: if self.current_suggestion is not None and self.current_suggestion in text:
# We're restricting our search... # We're restricting our search...
@ -1184,7 +1184,7 @@ class pluginclass( object ):
try: try:
# Determine where the Desktop folder is (could be localized) # Determine where the Desktop folder is (could be localized)
import sys, commands import sys, commands
sys.path.append('/usr/lib/linuxmint/common') sys.path.append('/usr/share/linuxmint/common')
from configobj import ConfigObj from configobj import ConfigObj
config = ConfigObj(home + "/.config/user-dirs.dirs") config = ConfigObj(home + "/.config/user-dirs.dirs")
desktopDir = home + "/Desktop" desktopDir = home + "/Desktop"

View File

@ -387,7 +387,7 @@ class ApplicationLauncher( easyButton ):
Execute(self.appExec, self.appPath) Execute(self.appExec, self.appPath)
def uninstall (self, *args ): def uninstall (self, *args ):
Execute("gksu /usr/lib/linuxmint/common/mint-remove-application.py " + self.desktopFile) Execute("gksu /usr/share/linuxmint/common/mint-remove-application.py " + self.desktopFile)
# IconTheme changed, setup new icons for button and drag 'n drop # IconTheme changed, setup new icons for button and drag 'n drop
def iconChanged( self ): def iconChanged( self ):

View File

@ -177,7 +177,7 @@ class pluginclass( object ):
desktopDir = home + "/Desktop" desktopDir = home + "/Desktop"
try: try:
import sys import sys
sys.path.append('/usr/lib/linuxmint/common') sys.path.append('/usr/share/linuxmint/common')
from configobj import ConfigObj from configobj import ConfigObj
config = ConfigObj(home + "/.config/user-dirs.dirs") config = ConfigObj(home + "/.config/user-dirs.dirs")
tmpdesktopDir = config['XDG_DESKTOP_DIR'] tmpdesktopDir = config['XDG_DESKTOP_DIR']

View File

@ -132,8 +132,8 @@ class pluginclass( object ):
def do_standard_items( self ): def do_standard_items( self ):
if ( self.showSoftwareManager == True ): if ( self.showSoftwareManager == True ):
if os.path.exists("/usr/lib/linuxmint/mintInstall/icon.svg"): if os.path.exists("/usr/share/linuxmint/mintInstall/icon.svg"):
Button1 = easyButton( "/usr/lib/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 ) Button1 = easyButton( "/usr/share/linuxmint/mintInstall/icon.svg", self.iconsize, [_("Software Manager")], -1, -1 )
Button1.connect( "clicked", self.ButtonClicked, "gksu mintinstall" ) Button1.connect( "clicked", self.ButtonClicked, "gksu mintinstall" )
Button1.show() Button1.show()
self.systemBtnHolder.pack_start( Button1, False, False, 0) self.systemBtnHolder.pack_start( Button1, False, False, 0)