Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
a29d5574cb |
|||
|
a90bda1a04 |
5 changed files with 7 additions and 5 deletions
|
|
@ -98,6 +98,10 @@ class NotificationController
|
|||
name: "image-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)
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
|
||||
Future<void> register([bool alreadyRegistered = false]) async {
|
||||
final clientState = ref.watch(ClientStateController.provider);
|
||||
if (clientState?.deviceId == null) ref.invalidateSelf();
|
||||
if (clientState?.deviceId == null) return ref.invalidateSelf();
|
||||
|
||||
final capabilities = await ref
|
||||
.watch(ClientController.provider.notifier)
|
||||
|
|
|
|||
|
|
@ -6,5 +6,6 @@ Exec=nexus %u
|
|||
Icon=nexus
|
||||
Terminal=false
|
||||
Type=Application
|
||||
DBusActivatable=true
|
||||
Categories=Chat;Network;InstantMessaging;
|
||||
MimeType=x-scheme-handler/nexus.federated.nexus;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[D-BUS Service]
|
||||
Name=nexus.federated.nexus
|
||||
Exec=/usr/bin/env nexus
|
||||
|
|
@ -39,7 +39,7 @@ flutter.buildFlutterApplication {
|
|||
postInstall = ''
|
||||
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 -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 \
|
||||
--suffix LD_LIBRARY_PATH : $out/app/nexus/lib
|
||||
'';
|
||||
|
|
|
|||
Loading…
Reference in a new issue