components/autorunManager: Add description to autorun notification

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3168>
This commit is contained in:
Julian Sparber 2024-02-06 16:38:19 +01:00 committed by Marge Bot
parent 94181ea999
commit 3c43983ed1

View File

@ -187,9 +187,13 @@ class AutorunDispatcher {
return;
const source = MessageTray.getSystemSource();
/* Translators: %s is the name of a partition on a external drive */
const title = _('“%s” connected'.format(mount.get_name()));
const body = _('Disk can now be used');
const notification = new MessageTray.Notification({
source,
title: mount.get_name(),
title,
body,
});
notification.connect('activate', () => {
const app = Gio.app_info_get_default_for_type('inode/directory', false);