xfce default settings

This commit is contained in:
bferturk
2016-09-07 01:23:10 +03:00
parent 07f03526e4
commit 70920bb861
11 changed files with 99188 additions and 98842 deletions
@@ -0,0 +1,15 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir = "."
def install():
pythonmodules.install()
pisitools.insinto("/usr/share/","./share/*")
@@ -0,0 +1,34 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi import api as pisiapi
import platform
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
fileassociations = open("/usr/share/applications/mimeapps.list","a")
fileassociations.write("application/pdf=evince.desktop;\n")
fileassociations.write("application/zip=file-roller.desktop;\n")
fileassociations.write("application/x-rar=file-roller.desktop;\n")
fileassociations.write("application/x-compressed-tar=file-roller.desktop;\n")
fileassociations.write("application/x-tar=file-roller.desktop;\n")
fileassociations.write("application/x-bzip-compressed-tar=file-roller.desktop;\n")
fileassociations.write("image/jpeg=ristretto.desktop;\n")
fileassociations.write("image/png=ristretto.desktop;\n")
fileassociations.write("image/gif=ristretto.desktop;\n")
fileassociations.write("image/x-ms-bmp=ristretto.desktop;\n")
fileassociations.write("text/plain=medit.desktop;\n")
fileassociations.write("application/x-pisi=package-manager.desktop;\n")
fileassociations.close()
#FIXME:
try:
os.unlink("/usr/share/xsessions/openbox-gnome.desktop")
except:
pass
try:
os.unlink("/usr/share/xsessions/openbox-kde.desktop")
except:
pass
@@ -0,0 +1,49 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>pisilinux-default-settings-xfce</Name>
<Homepage>http://www.pisilinux.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv3</License>
<IsA>data</IsA>
<Summary>PisiLinux default settings for xfce</Summary>
<Description>This package contains the xfce default settings for Pisilinux.</Description>
<Archive sha1sum="fdcdc8d9a7132a1206b15c67ec9cd688f2e260e9" type="tarxz">https://sourceforge.net/projects/pisi-source/files/PisiLinux-xfce/pisilinux-default-settings-xfce-0.2.1.tar.xz</Archive>
</Source>
<Package>
<Name>pisilinux-default-settings-xfce</Name>
<RuntimeDependencies>
<Dependency>xfce4-settings</Dependency>
<Dependency>polkit-gnome</Dependency>
<Dependency>gvfs</Dependency>
<Dependency>medit</Dependency>
<Dependency>file-roller</Dependency>
<Dependency>network-manager-applet</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/share/backgrounds/xfce</Path>
<Path fileType="data">/usr/share/icons/*</Path>
<Path fileType="data">/usr/share/themes/*</Path>
<Path fileType="config">/etc/xdg/xfce4/xfconf/xfce-perchannel-xml</Path>
<Path fileType="config">/etc/xdg/xfce4/terminal</Path>
</Files>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="1">
<Date>2016-09-08</Date>
<Version>0.2.1</Version>
<Comment>First release</Comment>
<Name>Ergün Salman</Name>
<Email>poyraz76@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>pisilinux-default-settings-xfce</Name>
<Summary xml:lang="tr">Pisilinux xfce öntanımlı ayarları</Summary>
<Description xml:lang="tr">Bu paket, PisiLinux xfce için öntanımlı ayarları içerir.</Description>
</Source>
</PISI>