more linux install

This commit is contained in:
j 2016-01-17 12:14:08 +05:30
commit 9fcd9491ac
2 changed files with 11 additions and 2 deletions

View file

@ -2,7 +2,8 @@ import os
import sys
import settings
from utils import run, makefolder
import ox
from utils import run
root_dir = os.path.dirname(settings.base_dir)
@ -58,6 +59,7 @@ def install_launchd():
def install_xdg():
app = os.path.expanduser('~/.local/share/applications/openmedialibrary.desktop')
ox.makedirs(os.path.dirname(app))
with open(app, 'w') as fd:
fd.write('''[Desktop Entry]
Type=Application