Skip to content

Commit

Permalink
only exec icon install code on linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Mar 3, 2024
1 parent f630f9c commit decef17
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions fdlogger/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2777,11 +2777,12 @@ def startup_dialog_finished():
def run():
"""Main Entry"""
PATH = os.path.dirname(__loader__.get_filename())
os.system(
"xdg-icon-resource install --size 64 --context apps --mode user "
f"{PATH}/icon/k6gte-fdlogger.png k6gte-fdlogger"
)
os.system(f"xdg-desktop-menu install {PATH}/data/k6gte-fieldday.desktop")
if sys.platform == "linux":
os.system(
"xdg-icon-resource install --size 64 --context apps --mode user "
f"{PATH}/icon/k6gte-fdlogger.png k6gte-fdlogger"
)
os.system(f"xdg-desktop-menu install {PATH}/data/k6gte-fieldday.desktop")
timer.start(1000)
timer2.start(1000)
timer3.start(15000)
Expand Down

0 comments on commit decef17

Please sign in to comment.