kaptan, pds and package-manager
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
<PISI>
|
||||||
|
<Name>desktop.pisilinux</Name>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# -*- 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 shelltools
|
||||||
|
import glob
|
||||||
|
|
||||||
|
projectDir = "/usr/lib/kaptan/"
|
||||||
|
|
||||||
|
def install():
|
||||||
|
for file in glob.glob1(".", "*"):
|
||||||
|
shelltools.chmod(file, 0755)
|
||||||
|
|
||||||
|
for file in glob.glob1("languages", "*"):
|
||||||
|
shelltools.chmod("languages/"+file, 0755)
|
||||||
|
|
||||||
|
for file in glob.glob1("kaptan", "*"):
|
||||||
|
shelltools.chmod("kaptan/"+file, 0755)
|
||||||
|
|
||||||
|
for file in glob.glob1("data", "*"):
|
||||||
|
shelltools.chmod("data/"+file, 0755)
|
||||||
|
|
||||||
|
for file in glob.glob1("data/images", "*"):
|
||||||
|
shelltools.chmod("data/images/"+file, 0755)
|
||||||
|
|
||||||
|
pisitools.insinto("/usr/share/pixmaps/", "data/images/kaptan-icon.png", "kaptan.png")
|
||||||
|
pisitools.insinto(projectDir, "data/")
|
||||||
|
pisitools.insinto(projectDir, "languages/")
|
||||||
|
pisitools.insinto(projectDir, "kaptan/")
|
||||||
|
pisitools.insinto(projectDir, "kaptan.py", "kaptan5.py")
|
||||||
|
pisitools.insinto(projectDir, "rc_kaptan.py")
|
||||||
|
pisitools.insinto("/usr/bin/", "script/kaptan")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>kaptan</Name>
|
||||||
|
<Homepage>http://pisilinux.org</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>Pisi Linux Admins</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2</License>
|
||||||
|
<Icon>kaptan</Icon>
|
||||||
|
<IsA>app:gui</IsA>
|
||||||
|
<Summary>Kaptan, Pisi Linux workspace configuration wizard</Summary>
|
||||||
|
<Description>Kaptan lets you configure your workspace on first login.</Description>
|
||||||
|
<Archive sha1sum="21724354d0d3899af9ccb1b5dbe7f1121c8c86f6" type="targz">https://github.com/PisiLinuxNew/kaptan/archive/5.0-beta.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>python3-setuptools</Dependency>
|
||||||
|
<Dependency>python3-qt5-devel</Dependency>
|
||||||
|
<Dependency>python3-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>kaptan</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>python3-qt5</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="data">/usr/lib/kaptan</Path>
|
||||||
|
<Path fileType="data">/usr/lib/python3.4/site-packages</Path>
|
||||||
|
<Path fileType="data">/usr/share/applications</Path>
|
||||||
|
<Path fileType="data">/usr/share/pixmaps</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2016-04-15</Date>
|
||||||
|
<Version>5.0</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>Metehan Özbek</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>kaptan</Name>
|
||||||
|
<Summary xml:lang="tr">Pisi Linux Kaptan</Summary>
|
||||||
|
<Summary xml:lang="es">Pisi Linux Kaptan</Summary>
|
||||||
|
<Description xml:lang="tr">Kaptan, bilgisayarınız ilk defa açıldığında çalışma ortamınızı kişiselleştirmenize yardımcı olur.</Description>
|
||||||
|
<Description xml:lang="es">Kaptan, el asistente de inicio de Pisi Linux que le ayudará a personalizar su entorno de trabajo.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#!/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 kde4
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pythonmodules.install()
|
||||||
|
|
||||||
|
# Copy Notification Rc file for Kde 4
|
||||||
|
pisitools.insinto("%s/package-manager/" % kde4.appsdir, "src/package-manager.notifyrc")
|
||||||
|
|
||||||
|
for lang in ('de','en','es','fr','nl','sv','tr'):
|
||||||
|
pisitools.insinto("%s/html/%s/package-manager/" % (kde4.docdir, lang),
|
||||||
|
"help/%s/main_help.html" % lang, "index.html")
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
diff -Nuar package-manager-4.0.0.orig/src/packagemodel.py package-manager-4.0.0/src/packagemodel.py
|
||||||
|
--- package-manager-4.0.0.orig/src/packagemodel.py 2013-12-24 23:35:17.000000000 +0200
|
||||||
|
+++ package-manager-4.0.0/src/packagemodel.py 2014-01-12 16:28:56.483228983 +0200
|
||||||
|
@@ -47,7 +47,7 @@
|
||||||
|
|
||||||
|
if config.USE_APPINFO:
|
||||||
|
self.appinfo = AppInfoClient()
|
||||||
|
- self.appinfo.setServer('http://appinfo.pardus.org.tr')
|
||||||
|
+ self.appinfo.setServer('http://appinfo.pisilinux.org')
|
||||||
|
if not self.appinfo.initializeLocalDB()[0]:
|
||||||
|
self.appinfo.checkOutDB()
|
||||||
|
|
||||||
|
diff -Nuar package-manager-4.0.0.orig/src/pmutils.py package-manager-4.0.0/src/pmutils.py
|
||||||
|
--- package-manager-4.0.0.orig/src/pmutils.py 2013-12-24 23:35:16.000000000 +0200
|
||||||
|
+++ package-manager-4.0.0/src/pmutils.py 2014-01-12 16:29:17.453228944 +0200
|
||||||
|
@@ -156,7 +156,7 @@
|
||||||
|
QNetworkProxy.setApplicationProxy(QNetworkProxy())
|
||||||
|
|
||||||
|
def network_available():
|
||||||
|
- return pisi.fetcher.Fetcher('http://appinfo.pardus.org.tr').test()
|
||||||
|
+ return pisi.fetcher.Fetcher('http://appinfo.pisilinux.org').test()
|
||||||
|
|
||||||
|
def parse_proxy(line):
|
||||||
|
settings = {'domain':None,'user':None,'pass':None,'host':None,'port':None}
|
||||||
|
diff -Nuar package-manager-4.0.0.orig/src/statemanager.py package-manager-4.0.0/src/statemanager.py
|
||||||
|
--- package-manager-4.0.0.orig/src/statemanager.py 2013-12-24 23:35:17.000000000 +0200
|
||||||
|
+++ package-manager-4.0.0/src/statemanager.py 2014-01-12 16:29:49.533228560 +0200
|
||||||
|
@@ -158,7 +158,7 @@
|
||||||
|
if config.USE_APPINFO:
|
||||||
|
if network_available():
|
||||||
|
if not AppInfoClient().checkOutDB()[0]:
|
||||||
|
- AppInfoClient().setServer('http://appinfo.pardus.org.tr')
|
||||||
|
+ AppInfoClient().setServer('http://appinfo.pisilinux.org')
|
||||||
|
AppInfoClient().checkOutDB()
|
||||||
|
|
||||||
|
return True
|
||||||
|
diff -Nuar package-manager-4.0.0.orig/src/webdialog.py package-manager-4.0.0/src/webdialog.py
|
||||||
|
--- package-manager-4.0.0.orig/src/webdialog.py 2013-12-24 23:35:17.000000000 +0200
|
||||||
|
+++ package-manager-4.0.0/src/webdialog.py 2014-01-12 16:30:21.433228258 +0200
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
|
||||||
|
self.registerFunction(IN, lambda: parent.statusBar().hide())
|
||||||
|
self.registerFunction(FINISHED, lambda: parent.statusBar().setVisible(not self.isVisible()))
|
||||||
|
- self._as = 'http://appinfo.pardus.org.tr'
|
||||||
|
+ self._as = 'http://appinfo.pisilinux.org'
|
||||||
|
self.cancelButton.clicked.connect(self._hide)
|
||||||
|
self.cancelButton.setIcon(KIcon("cancel"))
|
||||||
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
Index: package-manager-3.0.3/src/pmutils.py
|
||||||
|
===================================================================
|
||||||
|
--- package-manager-3.0.3.orig/src/pmutils.py
|
||||||
|
+++ package-manager-3.0.3/src/pmutils.py
|
||||||
|
@@ -114,7 +114,7 @@ class PM:
|
||||||
|
|
||||||
|
def get_real_paths(packages):
|
||||||
|
# If packages are not from repo or remote, find their absolute paths
|
||||||
|
- return map(lambda x: x if not x.endswith('pisi') or '://' in x else os.path.abspath(x), packages)
|
||||||
|
+ return map(lambda x: x if not x.endswith('.pisi') or '://' in x else os.path.abspath(x), packages)
|
||||||
|
|
||||||
|
def isAllLocal(packages):
|
||||||
|
return all(map(lambda x: x.endswith('.pisi') and not '://' in x, packages))
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
diff -Nuar package-manager-4.0.0-OSmanOS/src/summarydialog.py package-manager-4.0.0/src/summarydialog.py
|
||||||
|
--- package-manager-4.0.0-OSmanOS/src/summarydialog.py 2013-12-24 23:35:17.000000000 +0200
|
||||||
|
+++ package-manager-4.0.0/src/summarydialog.py 2014-12-07 19:07:40.849356751 +0200
|
||||||
|
@@ -80,6 +80,19 @@
|
||||||
|
for desktopFile in desktopFiles:
|
||||||
|
self.addApplication(desktopFile)
|
||||||
|
|
||||||
|
+
|
||||||
|
+ def checkIcon(self, iconFileName):
|
||||||
|
+ extensions = ['png', 'jpg','jpeg', 'svg']
|
||||||
|
+ pixmapsDir = '/usr/share/pixmaps/'
|
||||||
|
+ if os.path.isfile(iconFileName) == True:
|
||||||
|
+ return iconFileName
|
||||||
|
+ else:
|
||||||
|
+ for ext in extensions:
|
||||||
|
+ fname = '%s%s.%s' % (pixmapsDir, iconFileName, ext)
|
||||||
|
+ if os.path.isfile(fname):
|
||||||
|
+ return fname
|
||||||
|
+
|
||||||
|
+
|
||||||
|
def addApplication(self, desktopFile):
|
||||||
|
parser = desktopparser.DesktopParser()
|
||||||
|
parser.read("/%s" % str(desktopFile))
|
||||||
|
@@ -89,7 +102,7 @@
|
||||||
|
if nodisplay == "true" or terminal == "true":
|
||||||
|
return
|
||||||
|
|
||||||
|
- icon = parser.safe_get_locale('Desktop Entry', 'Icon', None)
|
||||||
|
+ icon = self.checkIcon(parser.safe_get_locale('Desktop Entry', 'Icon', None))
|
||||||
|
command = parser.safe_get_locale('Desktop Entry', 'Exec', None)
|
||||||
|
if not command:
|
||||||
|
return
|
||||||
|
@@ -117,4 +130,3 @@
|
||||||
|
def showSummary(self):
|
||||||
|
if self.hasApplication():
|
||||||
|
self.show()
|
||||||
|
-
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
--- ui/webdialog.ui.old 2014-02-13 00:22:36.000000000 +0400
|
||||||
|
+++ ui/webdialog.ui 2014-02-13 00:10:47.000000000 +0400
|
||||||
|
@@ -232,15 +232,21 @@
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="cancelButton">
|
||||||
|
+ <property name="sizePolicy">
|
||||||
|
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
|
+ <horstretch>0</horstretch>
|
||||||
|
+ <verstretch>0</verstretch>
|
||||||
|
+ </sizepolicy>
|
||||||
|
+ </property>
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
- <width>32</width>
|
||||||
|
+ <width>36</width>
|
||||||
|
<height>26</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
- <width>24</width>
|
||||||
|
+ <width>36</width>
|
||||||
|
<height>26</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
@@ -256,7 +262,7 @@
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
- <string notr="true"/>
|
||||||
|
+ <string notr="true">X</string>
|
||||||
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>package-manager</Name>
|
||||||
|
<Homepage>http://www.pisilinux.org</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2</License>
|
||||||
|
<IsA>app:gui</IsA>
|
||||||
|
<Summary>PiSi graphical user interface</Summary>
|
||||||
|
<Description>Package Manager is PiSi's easy-to-use graphical user interface.</Description>
|
||||||
|
<Archive sha1sum="c46fdf5835c9abf56f3af82d2e960ac7fe51382a" type="targz">https://github.com/PisiLinuxNew/package-manager/archive/package-manager.4.1.1.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>docutils</Dependency>
|
||||||
|
<Dependency versionFrom="5.5.1">python-qt5-devel</Dependency>
|
||||||
|
<Dependency>python-sip</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>package-manager</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>pisi</Dependency>
|
||||||
|
<Dependency versionFrom="5.5.1">python-qt5</Dependency>
|
||||||
|
<!-- <Dependency>python-appinfo</Dependency> -->
|
||||||
|
<Dependency>python-sip</Dependency>
|
||||||
|
<Dependency>pisilinux-desktop-services</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="library">/usr/share</Path>
|
||||||
|
<Path fileType="localedata">/usr/share/locale</Path>
|
||||||
|
<Path fileType="data">/usr/share/applications</Path>
|
||||||
|
<Path fileType="data">/usr/share/icons</Path>
|
||||||
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2016-04-15</Date>
|
||||||
|
<Version>4.1.1</Version>
|
||||||
|
<Comment>ported pyqt5</Comment>
|
||||||
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
|
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>package-manager</Name>
|
||||||
|
<Summary xml:lang="tr">PiSi kullanıcı grafik arayüzü</Summary>
|
||||||
|
<Description xml:lang="tr">PiSi paket yöneticisine ait paket kurma, kaldırma ve güncelleme gibi işlerin grafik ortamda yapılabilmesini sağlayan PiSi grafik arayüzü.</Description>
|
||||||
|
<Description xml:lang="fr">PiSi est une interface graphique permettant d'effectuer l'installation, la suppression et la mise à jour de paquet PiSi depuis un environnement graphique.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#!/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 get
|
||||||
|
from pisi.actionsapi import pisitools
|
||||||
|
|
||||||
|
#WorkDir = 'pds-%s' % get.srcVERSION()
|
||||||
|
|
||||||
|
def build():
|
||||||
|
pythonmodules.compile()
|
||||||
|
|
||||||
|
def install():
|
||||||
|
pythonmodules.install()
|
||||||
|
pisitools.domove("/usr/lib/python2.7/site-packages", "/usr/lib/python3.4")
|
||||||
|
pisitools.removeDir("/usr/lib/python2.7")
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
--- pds/environments.py.orig 2011-07-04 16:43:22.000000000 +0300
|
||||||
|
+++ pds/environments.py 2014-01-13 23:48:50.387199790 +0200
|
||||||
|
@@ -64,7 +64,7 @@
|
||||||
|
ConfigPath = '$HOME/.config/xfce4/'
|
||||||
|
ConfigFile = 'xfconf/xfce-perchannel-xml/xsettings.xml'
|
||||||
|
ConfigType = 'xml'
|
||||||
|
- DefaultIconTheme = 'hicolor'
|
||||||
|
+ DefaultIconTheme = 'Faenza'
|
||||||
|
DefaultConfigPath = '/etc/xdg/xfce4/%s' % ConfigFile
|
||||||
|
IconKey = 'IconThemeName'
|
||||||
|
|
||||||
|
@@ -74,7 +74,7 @@
|
||||||
|
ConfigPath = '$HOME/.e/e/'
|
||||||
|
ConfigFile = 'config/standard/e.cfg'
|
||||||
|
ConfigType = 'env'
|
||||||
|
- DefaultIconTheme = 'hicolor'
|
||||||
|
+ DefaultIconTheme = 'Faenza'
|
||||||
|
IconKey = 'E_ICON_THEME'
|
||||||
|
|
||||||
|
class LXDE(DefaultDe):
|
||||||
|
@@ -83,9 +83,9 @@
|
||||||
|
ConfigPath = '$HOME/.config'
|
||||||
|
ConfigFile = ''
|
||||||
|
ConfigType = None
|
||||||
|
- DefaultIconTheme = 'oxygen'
|
||||||
|
+ DefaultIconTheme = 'Faenza'
|
||||||
|
IconKey = 'theme/name'
|
||||||
|
- DefaultIconFile = '/usr/share/icons/lxde_pardus2011_menu.png'
|
||||||
|
+ DefaultIconFile = '/usr/share/lxde/images/pisilinuxLogo.png'
|
||||||
|
|
||||||
|
class Fluxbox(DefaultDe):
|
||||||
|
Name = 'fluxbox'
|
||||||
|
@@ -93,7 +93,7 @@
|
||||||
|
ConfigPath = '$HOME/.config'
|
||||||
|
ConfigFile = ''
|
||||||
|
ConfigType = None
|
||||||
|
- DefaultIconTheme = 'oxygen'
|
||||||
|
+ DefaultIconTheme = 'Faenza'
|
||||||
|
|
||||||
|
class Gnome(DefaultDe):
|
||||||
|
Name = 'gnome'
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
diff -aur pds~/environments.py pds/environments.py
|
||||||
|
--- pds~/environments.py 2014-01-13 22:59:36.000000000 +0100
|
||||||
|
+++ pds/environments.py 2014-01-28 19:56:31.163320368 +0100
|
||||||
|
@@ -113,3 +113,10 @@
|
||||||
|
ConfigType = None
|
||||||
|
DefaultIconTheme = 'oxygen'
|
||||||
|
|
||||||
|
+class Mate(DefaultDe):
|
||||||
|
+ Name = 'mate'
|
||||||
|
+ Version = '1.61'
|
||||||
|
+ ConfigPath = '$HOME/.config/mate'
|
||||||
|
+ ConfigFile = ''
|
||||||
|
+ ConfigType = None
|
||||||
|
+ DefaultIconTheme = 'matefaenza'
|
||||||
|
diff -aur pds~/__init__.py pds/__init__.py
|
||||||
|
--- pds~/__init__.py 2011-07-04 12:19:46.000000000 +0200
|
||||||
|
+++ pds/__init__.py 2014-01-28 22:22:56.729985428 +0100
|
||||||
|
@@ -14,8 +14,9 @@
|
||||||
|
|
||||||
|
# Pardus Desktop Services
|
||||||
|
from os import path
|
||||||
|
-from os import getenv
|
||||||
|
from os import popen
|
||||||
|
+from os import getenv
|
||||||
|
+from os import environ
|
||||||
|
|
||||||
|
import piksemel
|
||||||
|
import gettext
|
||||||
|
@@ -32,7 +33,7 @@
|
||||||
|
class Pds:
|
||||||
|
|
||||||
|
SupportedDesktops = (DefaultDe, Kde4, Kde3, Xfce, Enlightenment, LXDE,
|
||||||
|
- Fluxbox, Gnome, Gnome3)
|
||||||
|
+ Fluxbox, Gnome, Gnome3, Mate)
|
||||||
|
|
||||||
|
def __init__(self, catalogName='', debug=False):
|
||||||
|
self._session = None
|
||||||
|
@@ -148,12 +149,19 @@
|
||||||
|
def session(self):
|
||||||
|
if not self._session:
|
||||||
|
env = getenv('DESKTOP_SESSION')
|
||||||
|
- if env == 'default' or not env or env == 'gnome':
|
||||||
|
+ if not env:
|
||||||
|
+ for var in list(environ.keys()):
|
||||||
|
+ v = var.split('_')
|
||||||
|
+ if len(v) < 2: continue
|
||||||
|
+ elif v[1] == 'DESKTOP':
|
||||||
|
+ env = v[0].lower()
|
||||||
|
+ break
|
||||||
|
+ elif env == 'default' or env == 'gnome':
|
||||||
|
session = readfile('/etc/default/desktop', DefaultDe.Name)
|
||||||
|
env = session.split('=')[1].strip()
|
||||||
|
for de in Pds.SupportedDesktops:
|
||||||
|
if env:
|
||||||
|
- if env in de.SessionTypes or env == de.Name:
|
||||||
|
+ if env in de.SessionTypes or env.lower() == de.Name.lower():
|
||||||
|
self._session = de
|
||||||
|
else:
|
||||||
|
if de.VersionKey:
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>pisilinux-desktop-services</Name>
|
||||||
|
<Homepage>http://www.pisilinux.org</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>pisilinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>GPLv2</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<Summary>Pisi Linux Desktop Services</Summary>
|
||||||
|
<Description>pisilinux-desktop-services is a wrapper python module for integrating various desktop environments using PyQt.</Description>
|
||||||
|
<!--<Archive sha1sum="2cdaa83b77295e7a1a38164b8ee295c5ad13af9a" type="targz">http://source.pisilinux.org/1.0/pds-1.2.6.tar.gz</Archive>-->
|
||||||
|
<Archive sha1sum="2351a0e61002047309742e3df0c792e7060afbec" type="targz">https://github.com/PisiLinuxNew/pds/archive/2.0.0.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>python-qt5-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<!--<Patch level="0">environment.patch</Patch>
|
||||||
|
<Patch level="0">mate_support.patch</Patch>-->
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>pisilinux-desktop-services</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>python-qt5</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib/python3.4/</Path>
|
||||||
|
<Path fileType="data">/usr/share/</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2016-04-15</Date>
|
||||||
|
<Version>2.0.0</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Ayhan Yalçınsoy</Name>
|
||||||
|
<Email>ayhanyalcinsoy@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>pisilinux-desktop-services</Name>
|
||||||
|
<Summary xml:lang="tr">Pisi Linux Masaüstü Hizmetleri</Summary>
|
||||||
|
<Description xml:lang="tr">pisilinux-desktop-services, Pisi Linux Uygulamalarının farklı masaüstü ortamları ile bütünleşik bir şekilde çalışmasını sağlayan bir Python modülüdür.</Description>
|
||||||
|
</Source>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user