diff options
author | Robert Tari <robert@tari.in> | 2024-08-06 11:39:25 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2024-08-06 11:39:25 +0200 |
commit | 042dc016193f42766d584a1c4309130553a639ad (patch) | |
tree | f4c4a48c5b70ea40e499347a275b663811bb7b0e /src | |
parent | 50faef7e9289beb75bf34fec79d6252a36043f9e (diff) | |
download | ayatana-indicator-sound-042dc016193f42766d584a1c4309130553a639ad.tar.gz ayatana-indicator-sound-042dc016193f42766d584a1c4309130553a639ad.tar.bz2 ayatana-indicator-sound-042dc016193f42766d584a1c4309130553a639ad.zip |
src/accounts-service-access.vala: Filter out prefixed users
Diffstat (limited to 'src')
-rw-r--r-- | src/accounts-service-access.vala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/accounts-service-access.vala b/src/accounts-service-access.vala index 1b66370..9372aa9 100644 --- a/src/accounts-service-access.vala +++ b/src/accounts-service-access.vala @@ -1,6 +1,6 @@ /* * Copyright 2016 Canonical Ltd. - * Copyright 2021-2023 Robert Tari + * Copyright 2021-2024 Robert Tari * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -144,6 +144,13 @@ public class AccountsServiceAccess : Object } } + bool bPrefix = username.has_prefix ("*"); + + if (bPrefix) + { + return; + } + // Get master AccountsService object DBusProxy accounts_proxy; |