Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ahmedmoselhi2
demoneditor
demon-editor-2.0-development-startfix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File demon-editor-2.0-development-startfix.patch of Package demoneditor
From e05f631e5d9e0da99b1c06c0081b1d2acf977499 Mon Sep 17 00:00:00 2001 From: ahmedmoselhi <ahmedmoselhi55@gmail.com> Date: Tue, 25 Jun 2024 11:39:34 +0000 Subject: [PATCH] demon-editor 2.0 development startfix --- demon-editor.desktop | 4 ++-- start.py | 29 ++--------------------------- 2 files changed, 4 insertions(+), 29 deletions(-) diff --git a/demon-editor.desktop b/demon-editor.desktop index ee6f1880..fc0f2b7b 100755 --- a/demon-editor.desktop +++ b/demon-editor.desktop @@ -24,8 +24,8 @@ Comment[ru]=Редактор списка каналов и спутников Comment[tr]=Enigma2 için Kanal ve uydu listesi düzenleyici Comment[zh_CN]=Enigma2频道和卫星列表编辑器 Icon=demon-editor -Exec=bash -c 'cd $(dirname %k) && ./start.py' +Exec=demon-editor Terminal=false Type=Application -Categories=Utility;Application; +Categories=Utility; StartupNotify=false diff --git a/start.py b/start.py index a5562323..19e8d578 100755 --- a/start.py +++ b/start.py @@ -1,29 +1,4 @@ #!/usr/bin/env python3 -import os +from app.ui.main import start_app - -def update_icon(): - need_update = False - icon_name = "demon-editor.desktop" - - with open(icon_name, "r", encoding="utf-8") as f: - lines = f.readlines() - for i, line in enumerate(lines): - if line.startswith("Icon="): - icon_path = line.lstrip("Icon=") - current_path = f"{os.getcwd()}/app/ui/icons/hicolor/96x96/apps/demon-editor.png" - if icon_path != current_path: - need_update = True - lines[i] = f"Icon={current_path}\n" - break - - if need_update: - with open(icon_name, "w", encoding="utf-8") as f: - f.writelines(lines) - - -if __name__ == "__main__": - from app.ui.main import start_app - - update_icon() - start_app() +start_app() -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor