From 5c6d39952b46af742fabe244cf20b76007e1f632 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 9 Jan 2016 16:25:49 +0530 Subject: [PATCH] better linux launcher description --- oml/integration.py | 3 ++- oml/setup.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/oml/integration.py b/oml/integration.py index d4f5258..3323bab 100644 --- a/oml/integration.py +++ b/oml/integration.py @@ -62,7 +62,8 @@ def install_xdg(): fd.write('''[Desktop Entry] Type=Application Name=Open Media Library -Comment=Open Media Library +Keywords=OpenMediaLibrary OML +Comment=manage and sync your digital media collections Exec=%(base)s/ctl open Icon=%(base)s/openmedialibrary/static/png/oml.png Terminal=false diff --git a/oml/setup.py b/oml/setup.py index 9692dde..ffcd04e 100644 --- a/oml/setup.py +++ b/oml/setup.py @@ -202,6 +202,11 @@ def upgrade_db(old, new=None): with db.session(): import item.models 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': run_sql('CREATE INDEX ix_find_findvalue ON find (findvalue)')