[SailfishDevel] Event view notifications app name

Matthew Vogt matthew.vogt at jolla.com
Sat Sep 26 21:54:57 UTC 2015


Hi Mattias,

Your app's notifications are grouped according to the 'appName' property they supply at submission (if not provided, it will default to the name from your .desktop file, or the process name if necessary).

If you have the new SDK, the notification docs should be available in creator, otherwise the documentation source available here: https://github.com/nemomobile/lipstick/blob/master/doc/src/notifications.dox

SailfishOS is no longer using MNotification, although client applications could use it, or any other way to formulate notifications conforming to the Desktop Notifications Specification, defined here: https://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html

You could use the libnemonotifications library (in the nemo-qml-plugnin-notifications package), which provides this class for formulating notifications: https://sailfishos.org/develop/docs/nemo-qml-plugin-notifications/libnemonotifications-notification.html/

Thanks,
Matt
________________________________________
From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Matthias Fehring [buschmann at huessenbergnetz.de]
Sent: Saturday, September 26, 2015 1:20 AM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Event view notifications app name

Hello list,

since Sailfish OS 1.1.9.28, notifications are grouped by the notificating
application on the event view. I do not use MNotificationGroup. The "header"
for my notifications is the name of my app's executable, what is not really
nice. Is there a way to set this name?

In the sources of mlite it seems to me, that it generally useses the app's
executable name via QFileInfo(QCoreApplication::arguments()[0]).fileName() [0]

Best greetings
Matthias

[0] https://github.com/nemomobile/mlite/blob/master/src/mnotification.cpp#L281

--
Das Gesetz hat zum Schneckengang verdorben, was Adlerflug geworden wäre.
(Friedrich Schiller - Die Räuber)

Und der Buschfunk spielt gerade "Lieblingsstück" von "Crash Casino".

www.buschmann23.de
GPG-Key: 0x614C3258
GPG Fingerprint: B770 E0D0 69CF BFC1 5FE1 D78E 3A70 A936 614C 3258


More information about the Devel mailing list