Skip to content

Commit

Permalink
Improve UX for COSMIC
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Jul 18, 2024
1 parent 35acb56 commit 2394201
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cartridges/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def setup_app_delegate() -> None:
def do_activate(self) -> None: # pylint: disable=arguments-differ
"""Called on app creation"""

if os.getenv("XDG_CURRENT_DESKOP") == "COSMIC":
Gio.AppInfo.launch_default_for_uri("https://stopthemingmy.app")
self.quit()

try:
setup_logging()
except ValueError:
Expand Down

1 comment on commit 2394201

@rdbende
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Please sign in to comment.