better linux launcher description

This commit is contained in:
j 2016-01-09 16:25:49 +05:30
parent 094097b26d
commit 5c6d39952b
2 changed files with 7 additions and 1 deletions

View file

@ -62,7 +62,8 @@ def install_xdg():
fd.write('''[Desktop Entry] fd.write('''[Desktop Entry]
Type=Application Type=Application
Name=Open Media Library Name=Open Media Library
Comment=Open Media Library Keywords=OpenMediaLibrary OML
Comment=manage and sync your digital media collections
Exec=%(base)s/ctl open Exec=%(base)s/ctl open
Icon=%(base)s/openmedialibrary/static/png/oml.png Icon=%(base)s/openmedialibrary/static/png/oml.png
Terminal=false Terminal=false

View file

@ -202,6 +202,11 @@ def upgrade_db(old, new=None):
with db.session(): with db.session():
import item.models import item.models
item.models.Find.query.filter_by(key='list').delete() item.models.Find.query.filter_by(key='list').delete()
if old <= '20160109-573-094097b' and new > '20160109-573-094097b':
import sys
if sys.platform.startswith('linux'):
import integration
integration.install_xdg()
if old <= '20140527-120-3cb9819': if old <= '20140527-120-3cb9819':
run_sql('CREATE INDEX ix_find_findvalue ON find (findvalue)') run_sql('CREATE INDEX ix_find_findvalue ON find (findvalue)')