Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/phone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class Phone: Profile

public Phone (Bluetooth bluetooth, SimpleActionGroup action_group)
{
string user = GLib.Environment.get_user_name ();
const string profile_name = "phone";
base (bluetooth, profile_name);

Expand All @@ -42,8 +43,10 @@ class Phone: Profile

var section = new Menu ();
section.append_item (create_enabled_menuitem ());
section.append (_("Bluetooth settings…"),
"indicator.phone-show-settings::bluetooth");
if (user != "lightdm") {
section.append (_("Bluetooth settings…"),
"indicator.phone-show-settings::bluetooth");
}
menu.append_section (null, section);

// know when to show the indicator & when to hide it
Expand Down