Skip to content

Commit

Permalink
Frontend.Maui: override application name to null in Gtk
Browse files Browse the repository at this point in the history
And remove DBus slot from snapcraft.yaml. This disables DBus
functionality that was causing problems with snap package.
  • Loading branch information
webwarrior-ws committed May 22, 2024
1 parent 3722491 commit 7ade6c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions snap/local/snapcraft_maui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ layout:
/usr/lib/cli:
symlink: $SNAP/usr/lib/cli

slots:
dbus:
interface: dbus
bus: session
name: Microsoft.Maui.MauiGtkApplication.geewallet

apps:
geewallet:
extensions: [gnome]
command: bin/geewallet-maui-gtk.sh
slots: [ dbus ]
plugs:
- network

Expand Down
3 changes: 3 additions & 0 deletions src/GWallet.Frontend.Maui/Platforms/Gtk/GtkApp.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ open Microsoft.Maui.Hosting

type GtkApp() =
inherit MauiGtkApplication()

// force Gtk to not use DBus
override _.ApplicationId = null

override _.CreateMauiApp() = MauiProgram.CreateMauiApp()

0 comments on commit 7ade6c4

Please sign in to comment.