Files

12 lines
513 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
# MIME veritabanını güncelle (.pisi uzantısını tanısın)
os.system("update-mime-database /usr/share/mime")
# Desktop veritabanını güncelle (Hangi dosyanın hangi uygulama ile açılacağını kaydet)
os.system("update-desktop-database /usr/share/applications")
# (Opsiyonel) .pisi dosyaları için varsayılan uygulamayı ayarla
os.system("xdg-mime default pisi-installer.desktop application/pisi-software-center.xml")