move icons to xdg standard dirs, add desktop files

closes #359
This commit is contained in:
Christophe Benz 2010-08-11 19:27:41 +02:00
commit 13f9fc07b2
36 changed files with 70 additions and 29 deletions

9
desktop/qboobmsg.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=QBoobmsg
Comment=Send and receive messages from various websites
Exec=qboobmsg
# Icon=qboobmsg
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;Qt;

9
desktop/qhavesex.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=QHavesex
Comment=Optimize your probabilities to have sex on dating websites
Exec=qhavesex
# Icon=qhavesex
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;Chat;ContactManagement;Qt;

9
desktop/qvideoob.desktop Normal file
View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=QVideoob
Comment=Search for videos on many websites, and get info about them
Exec=qvideoob
# Icon=qvideoob
Terminal=false
Type=Application
StartupNotify=true
Categories=Video;Qt;

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Weboob backends configuration
Comment=Configure Weboob backends
Exec=weboob-config-qt
# Icon=weboob-config-qt
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Qt;

BIN
icons/aum.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
icons/bnporc.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

BIN
icons/canaltp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
icons/cragr.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
icons/dlfp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

BIN
icons/fourchan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
icons/gazelle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
icons/ina.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
icons/transilien.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
icons/yahoo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 B

BIN
icons/youjizz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
icons/youporn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
icons/youtube.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -17,20 +17,32 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from __future__ import with_statement
from setuptools import find_packages, setup from setuptools import find_packages, setup
import glob
import os import os
import subprocess
import sys
with open('/dev/null', 'w') as devnull:
process = subprocess.Popen(['which', 'pyuic4'], stdout=devnull)
return_code = process.wait()
if return_code != 0:
print 'pyuic4 is not installed on your system'
sys.exit(1)
os.system('make -C weboob/applications/qboobmsg/ui') os.system('make -C weboob/applications/qboobmsg/ui')
os.system('make -C weboob/applications/qhavesex/ui') os.system('make -C weboob/applications/qhavesex/ui')
os.system('make -C weboob/applications/qvideoob/ui') os.system('make -C weboob/applications/qvideoob/ui')
os.system('make -C weboob/tools/application/qt') os.system('make -C weboob/tools/application/qt')
setup( setup(
name='weboob-dev', name='weboob',
version='dev', version='dev',
description='Weboob, Web Out Of Browsers - core library', description='Weboob, Web Out Of Browsers - development version',
author='Romain Bignon', author='Romain Bignon',
author_email='weboob@lists.symlink.me', author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz', maintainer='Christophe Benz',
@ -57,3 +69,15 @@ setup(
# 'WebOb', # python-webob # 'WebOb', # python-webob
], ],
) )
def install_xdg():
"""
On xdg-compliant systems, install desktop file and icon
"""
print 'Installing desktop menu files'
os.system('xdg-desktop-menu install --novendor desktop/*.desktop')
for filepath in glob.glob('icons/*'):
print 'Installing icon %s' % filepath
os.system('xdg-icon-resource install --size 64 --novendor %s' % filepath)
install_xdg()

View file

@ -37,8 +37,6 @@ class ArteBackend(BaseBackend, ICapVideo):
VERSION = '0.2' VERSION = '0.2'
DESCRIPTION = 'Arte french TV' DESCRIPTION = 'Arte french TV'
LICENSE = 'GPLv3' LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = ArteBrowser BROWSER = ArteBrowser
def get_video(self, _id): def get_video(self, _id):

View file

@ -46,7 +46,6 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesReply, ICapDating, ICapC
VERSION = '0.1' VERSION = '0.1'
LICENSE = 'GPLv3' LICENSE = 'GPLv3'
DESCRIPTION = u"“Adopte un mec” french dating website" DESCRIPTION = u"“Adopte un mec” french dating website"
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
CONFIG = {'username': BaseBackend.ConfigField(description='Username on website'), CONFIG = {'username': BaseBackend.ConfigField(description='Username on website'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True), 'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
'register': BaseBackend.ConfigField(default=False, description='Register as new account?'), 'register': BaseBackend.ConfigField(default=False, description='Register as new account?'),

Some files were not shown because too many files have changed in this diff Show more