Compare commits

..
5 changed files with 7 additions and 5 deletions

View file

@ -98,6 +98,10 @@ class NotificationController
name: "image-path", name: "image-path",
value: LinuxHintStringValue(icon.path), value: LinuxHintStringValue(icon.path),
), ),
.new(
name: "desktop-entry",
value: LinuxHintStringValue("nexus.federated.nexus"),
),
], ],
), ),
// TODO: See if icons can be added to iOS, macOS, and Windows notifications (#68) // TODO: See if icons can be added to iOS, macOS, and Windows notifications (#68)

View file

@ -121,7 +121,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
Future<void> register([bool alreadyRegistered = false]) async { Future<void> register([bool alreadyRegistered = false]) async {
final clientState = ref.watch(ClientStateController.provider); final clientState = ref.watch(ClientStateController.provider);
if (clientState?.deviceId == null) ref.invalidateSelf(); if (clientState?.deviceId == null) return ref.invalidateSelf();
final capabilities = await ref final capabilities = await ref
.watch(ClientController.provider.notifier) .watch(ClientController.provider.notifier)

View file

@ -6,5 +6,6 @@ Exec=nexus %u
Icon=nexus Icon=nexus
Terminal=false Terminal=false
Type=Application Type=Application
DBusActivatable=true
Categories=Chat;Network;InstantMessaging; Categories=Chat;Network;InstantMessaging;
MimeType=x-scheme-handler/nexus.federated.nexus; MimeType=x-scheme-handler/nexus.federated.nexus;

View file

@ -1,3 +0,0 @@
[D-BUS Service]
Name=nexus.federated.nexus
Exec=/usr/bin/env nexus

View file

@ -39,7 +39,7 @@ flutter.buildFlutterApplication {
postInstall = '' postInstall = ''
install -D assets/bundled/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg install -D assets/bundled/icon.svg $out/share/icons/hicolor/scalable/apps/nexus.svg
install -Dm755 linux/nexus.federated.nexus.desktop -t $out/share/applications install -Dm755 linux/nexus.federated.nexus.desktop -t $out/share/applications
install -Dm644 linux/*.service -t $out/share/dbus-1/services install -Dm644 linux/nexus.federated.nexus.UnifiedPush.service -t $out/share/dbus-1/services
wrapProgram $out/bin/nexus \ wrapProgram $out/bin/nexus \
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib --suffix LD_LIBRARY_PATH : $out/app/nexus/lib
''; '';