Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions data/gala.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@
</key>
</schema>

<schema path="/org/pantheon/desktop/gala/sounds/" id="org.pantheon.desktop.gala.sounds">
<key type="b" name="play-login-sound">
<default>true</default>
<summary>Play login sound</summary>
<description>Whether a sound should be played on login.</description>
</key>
</schema>

<schema path="/org/pantheon/desktop/gala/mask-corners/" id="org.pantheon.desktop.gala.mask-corners">
<key type="b" name="enable">
<default>true</default>
Expand Down
6 changes: 6 additions & 0 deletions src/WorkspaceManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ namespace Gala {
// There are some empty workspace at startup
cleanup ();

var sounds_settings = new GLib.Settings ("org.pantheon.desktop.gala.sounds");
if (sounds_settings.get_boolean ("play-login-sound")) {
unowned Meta.SoundPlayer sound_player = display.get_sound_player ();
sound_player.play_from_theme ("login", "", null);
}

if (Prefs.get_dynamic_workspaces ())
manager.override_workspace_layout (DisplayCorner.TOPLEFT, false, 1, -1);

Expand Down