works for fix deps gtk2
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import piksemel
|
||||
import os
|
||||
|
||||
def updateData(filepath):
|
||||
parse = piksemel.parse(filepath)
|
||||
|
||||
for icon in parse.tags("File"):
|
||||
path = icon.getTagData("Path")
|
||||
if path.startswith("usr/lib/gdk-pixbuf-2.0/2.10.0/loaders"):
|
||||
os.system("/usr/bin/gdk-pixbuf-query-loaders --update-cache")
|
||||
return
|
||||
|
||||
def setupPackage(metapath, filepath):
|
||||
updateData(filepath)
|
||||
|
||||
def cleanupPackage(metapath, filepath):
|
||||
pass
|
||||
|
||||
def postCleanupPackage(metapath, filepath):
|
||||
updateData(filepath)
|
||||
Reference in New Issue
Block a user