Merge pull request #114 from monsta/patch-9

small fixes
This commit is contained in:
Clement Lefebvre 2015-02-24 13:15:33 +00:00
commit bc98ede28e
5 changed files with 33 additions and 33 deletions

View File

@ -182,7 +182,6 @@ class KeymapKey(Structure):
("group", c_int), ("group", c_int),
("level", c_int)] ("level", c_int)]
class KeybindingWidget(Gtk.HBox): class KeybindingWidget(Gtk.HBox):
__gsignals__ = { __gsignals__ = {
'accel-edited': (GObject.SignalFlags.RUN_LAST, None, ()), 'accel-edited': (GObject.SignalFlags.RUN_LAST, None, ()),

View File

@ -472,7 +472,11 @@ class pluginclass( object ):
# save old config - this is necessary because the app will notified when it sets the default values and you don't want the to reload itself several times # save old config - this is necessary because the app will notified when it sets the default values and you don't want the to reload itself several times
oldcategories_mouse_over = self.categories_mouse_over oldcategories_mouse_over = self.categories_mouse_over
oldtotalrecent = self.totalrecent oldiconsize = self.iconSize
oldfaviconsize = self.faviconsize
oldswapgeneric = self.swapgeneric
oldshowcategoryicons = self.showcategoryicons
oldcategoryhoverdelay = self.categoryhoverdelay
oldsticky = self.sticky oldsticky = self.sticky
oldminimized = self.minimized oldminimized = self.minimized
oldicon = self.icon oldicon = self.icon
@ -482,7 +486,7 @@ class pluginclass( object ):
self.GetGSettingsEntries() self.GetGSettingsEntries()
# if the config hasn't changed return # if the config hasn't changed return
if oldcategories_mouse_over == self.categories_mouse_over and oldiconsize == self.iconSize and oldfaviconsize == self.faviconsize and oldtotalrecent == self.totalrecent and oldswapgeneric == self.swapgeneric and oldshowcategoryicons == self.showcategoryicons and oldcategoryhoverdelay == self.categoryhoverdelay and oldsticky == self.sticky and oldminimized == self.minimized and oldicon == self.icon and oldhideseparator == self.hideseparator and oldshowapplicationcomments == self.showapplicationcomments: if oldcategories_mouse_over == self.categories_mouse_over and oldiconsize == self.iconSize and oldfaviconsize == self.faviconsize and oldswapgeneric == self.swapgeneric and oldshowcategoryicons == self.showcategoryicons and oldcategoryhoverdelay == self.categoryhoverdelay and oldsticky == self.sticky and oldminimized == self.minimized and oldicon == self.icon and oldhideseparator == self.hideseparator and oldshowapplicationcomments == self.showapplicationcomments:
return return
self.Todos() self.Todos()
@ -1403,7 +1407,6 @@ class pluginclass( object ):
def buildFavorites( self ): def buildFavorites( self ):
try: try:
from user import home
if (not os.path.exists(home + "/.linuxmint/mintMenu/applications.list")): if (not os.path.exists(home + "/.linuxmint/mintMenu/applications.list")):
os.system("mkdir -p " + home + "/.linuxmint/mintMenu/applications") os.system("mkdir -p " + home + "/.linuxmint/mintMenu/applications")
os.system("cp /usr/lib/linuxmint/mintMenu/applications.list " + home + "/.linuxmint/mintMenu/applications.list") os.system("cp /usr/lib/linuxmint/mintMenu/applications.list " + home + "/.linuxmint/mintMenu/applications.list")

View File

@ -1,7 +1,6 @@
#!/usr/bin/python #!/usr/bin/python
import os import os
import subprocess
def RemoveArgs(Execline): def RemoveArgs(Execline):
NewExecline = [] NewExecline = []
@ -40,7 +39,6 @@ def Execute( cmd , commandCwd=None):
os.chdir( cwd ) os.chdir( cwd )
string = ' '.join(cmd) string = ' '.join(cmd)
string = string + " &" string = string + " &"
#subprocess.Popen( cmd ) // use os.system instead of popen so children don't end up in zombie waiting for us to wait() for them
os.system(string) os.system(string)
return True return True
except Exception, detail: except Exception, detail: