[wgem] set the application to autostart if --tray=start-in-tray

This commit is contained in:
Vinícius Moreira
2019-12-13 17:15:25 -03:00
parent 174349cf5b
commit 416a3fd0dd
2 changed files with 24 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import re
from pathlib import Path
from typing import List
from bauh.api.abstract.model import SoftwarePackage
@@ -86,3 +87,7 @@ class WebApplication(SoftwarePackage):
def has_screenshots(self) -> bool:
return False
def get_autostart_path(self) -> str:
if self.desktop_entry:
return '{}/.config/autostart/{}'.format(Path.home(), self.desktop_entry.split('/')[-1])