Commit 13f9fc07 authored by Christophe Benz's avatar Christophe Benz
Browse files

move icons to xdg standard dirs, add desktop files

closes #359
parent 3fcbcc39
[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;
[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;
[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;
[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;
......@@ -17,10 +17,22 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
from __future__ import with_statement
from setuptools import find_packages, setup
import glob
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/qhavesex/ui')
......@@ -28,9 +40,9 @@
os.system('make -C weboob/tools/application/qt')
setup(
name='weboob-dev',
name='weboob',
version='dev',
description='Weboob, Web Out Of Browsers - core library',
description='Weboob, Web Out Of Browsers - development version',
author='Romain Bignon',
author_email='weboob@lists.symlink.me',
maintainer='Christophe Benz',
......@@ -57,3 +69,15 @@
# '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()
......@@ -37,8 +37,6 @@ class ArteBackend(BaseBackend, ICapVideo):
VERSION = '0.2'
DESCRIPTION = 'Arte french TV'
LICENSE = 'GPLv3'
ICON = os.path.join(os.path.dirname(__file__), 'data/logo.png')
BROWSER = ArteBrowser
def get_video(self, _id):
......
......@@ -46,7 +46,6 @@ class AuMBackend(BaseBackend, ICapMessages, ICapMessagesReply, ICapDating, ICapC
VERSION = '0.1'
LICENSE = 'GPLv3'
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'),
'password': BaseBackend.ConfigField(description='Password of account', is_masked=True),
'register': BaseBackend.ConfigField(default=False, description='Register as new account?'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment