[gnome] Update gnome extensions

This commit is contained in:
2026-01-13 17:20:07 -05:00
parent 88bae496fd
commit 21fd01aa82
181 changed files with 1145 additions and 7773 deletions

View File

@ -64,7 +64,7 @@ const Store = GObject.registerClass({
/**
* Parse an EContact and add it to the store.
*
* @param {EBookContacts.Contact} econtact - an EContact to parse
* @param {"EBookContacts.Contact"} econtact - an EContact to parse
* @param {string} [origin] - an optional origin string
*/
async _parseEContact(econtact, origin = 'desktop') {

View File

@ -15,8 +15,17 @@ let Gvc = null;
try {
// Add gnome-shell's typelib dir to the search path
const typelibDir = GLib.build_filenamev([Config.GNOME_SHELL_LIBDIR, 'gnome-shell']);
GIRepository.Repository.prepend_search_path(typelibDir);
GIRepository.Repository.prepend_library_path(typelibDir);
if (GIRepository.Repository.hasOwnProperty('prepend_search_path')) {
// GNOME <= 48 / GIRepository 2.0
GIRepository.Repository.prepend_search_path(typelibDir);
GIRepository.Repository.prepend_library_path(typelibDir);
} else {
// GNOME 49+ / GIRepository 3.0
const repo = GIRepository.Repository.dup_default();
repo.prepend_search_path(typelibDir);
repo.prepend_library_path(typelibDir);
}
Gvc = (await import('gi://Gvc')).default;
} catch {}