forked from bitcoinafterlife/bal-electrum-plugin
Windows
This commit is contained in:
2
qt.py
2
qt.py
@@ -3998,10 +3998,12 @@ class BalCalendar:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def open_with_default_app(calendar_app, path):
|
def open_with_default_app(calendar_app, path):
|
||||||
|
_logger.debug("opening calendar app")
|
||||||
try:
|
try:
|
||||||
subprocess.check_call([calendar_app, path])
|
subprocess.check_call([calendar_app, path])
|
||||||
return True
|
return True
|
||||||
except Exception as _e:
|
except Exception as _e:
|
||||||
|
_logger.error(f"starting calendar app linux failed:{e}")
|
||||||
try:
|
try:
|
||||||
import os
|
import os
|
||||||
os.startfile(path)
|
os.startfile(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user