mirror of
https://github.com/DeeJanuz/frametop.git
synced 2026-10-06 05:00:08 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
038b0c03da |
+4
-1
@@ -745,7 +745,10 @@ class Daemon:
|
|||||||
Returns (reply, pid or None)."""
|
Returns (reply, pid or None)."""
|
||||||
if app:
|
if app:
|
||||||
app = app.removesuffix(".desktop")
|
app = app.removesuffix(".desktop")
|
||||||
info = Gio.DesktopAppInfo.new(app + ".desktop")
|
try:
|
||||||
|
info = Gio.DesktopAppInfo.new(app + ".desktop")
|
||||||
|
except TypeError: # PyGObject raises for the NULL a missing desktop file returns
|
||||||
|
info = None
|
||||||
if info is None:
|
if info is None:
|
||||||
return f"error no app {app}", None
|
return f"error no app {app}", None
|
||||||
pids = []
|
pids = []
|
||||||
|
|||||||
Reference in new issue
Block a user