mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[AppImage package] fix: not able to reinitialize
This commit is contained in:
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||||
|
|
||||||
|
## [0.9.25]
|
||||||
|
### Fixes
|
||||||
|
- AppImage package
|
||||||
|
- not able to reinitialize (e.g: when settings are changed)
|
||||||
|
|
||||||
## [0.9.24] 2021-12-17
|
## [0.9.24] 2021-12-17
|
||||||
### Features
|
### Features
|
||||||
- Web
|
- Web
|
||||||
|
|||||||
@@ -36,11 +36,10 @@ def get_default_icon(system: bool = True) -> Tuple[str, QIcon]:
|
|||||||
|
|
||||||
|
|
||||||
def restart_app():
|
def restart_app():
|
||||||
"""
|
appimage_path = os.getenv('APPIMAGE')
|
||||||
:param show_panel: if the panel should be displayed after the app restart
|
|
||||||
:return:
|
restart_cmd = [appimage_path] if appimage_path else [sys.executable, *sys.argv]
|
||||||
"""
|
|
||||||
restart_cmd = [sys.executable, *sys.argv]
|
|
||||||
subprocess.Popen(restart_cmd)
|
subprocess.Popen(restart_cmd)
|
||||||
QCoreApplication.exit()
|
QCoreApplication.exit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user