From ba8900a1d6946655d9f91062ae7ed52d7efb0665 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 27 Oct 2015 19:49:12 +0100 Subject: Attempt to fake a session with org.gnome.SessionManager. --- ...rcticaProject.ArcticaGreeterSession.gschema.xml | 193 --------------------- src/arctica-greeter.vala | 4 +- 2 files changed, 2 insertions(+), 195 deletions(-) delete mode 100644 data/org.ArcticaProject.ArcticaGreeterSession.gschema.xml diff --git a/data/org.ArcticaProject.ArcticaGreeterSession.gschema.xml b/data/org.ArcticaProject.ArcticaGreeterSession.gschema.xml deleted file mode 100644 index e600feb..0000000 --- a/data/org.ArcticaProject.ArcticaGreeterSession.gschema.xml +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - - - - - - - - - "Automatic" - The form factor Unity should target. - The form factor chosen will affect the size and appearance of the Dash, Launcher and also the Window Management behaviour. - - - "Expanded" - Whether the home screen should be expanded. - Whether the home screen should be expanded. - - - 0 - Number of times a normal window has been minimized. - This is used to adjust the animation speed by making it progressively faster the more it is used. - - - 300 - The duration for the minimize animation when it is at its fastest setting. - This is the duration that the minimize animation will have when it has been used more than an number of times equal minimize-speed-threshold. - - - 800 - The duration for the minimize animation when it is at its slowest setting. - This is the duration that the minimize animation will have when it has never been used. - - - 100 - The number of minimizations required to reach maximum speed. - The speed of the minimize animation will progressively get faster as minimize-count approaches this value. - - - true - Enable/Disable dash result double-click activation. - This is used to enable/disable double-click result activation in the dash. Double-click to activate, single click preview - - - false - Enable/Disable the integrated menus in Unity. - When this is enabled, the application menus will be shown - on the window decoration, otherwise they will be always shown on the - unity top panel - - - 180 - - Delay (in ms) before showing the menus when pressing Alt - This allows tune the delay before presenting unity menus - (in non always-show-menus mode). - - - false - Toggle the menu visibility based on mouse hovering. - When this is enabled, the application menus will be always - shown (on the window decoration or in the unity panel, depending whether - integrated menus are enabled), otherwise they will be shown only when - the mouse cursor is over the relative mouse area. - - - - - 1.0 - - Font scaling for unity and applications. - This value defines the global font scaling used by both - unity and applications. It will match the current system font scaling. - - - 1.0 - - Mouse cursor scaling. - This value defines the global mouse cursor scaling used by both - unity and applications. Changing this value allows to use a custom scaling - for the mouse cursor. - - - '' - The name of the monitor that controls the global app scaling factor. - This value defines the monitor that unity will use (if found) as reference - for scaling all the applications. - - - true - Use the maximum per-monitor scale-factor as application scale factor if no target monitor is found. - When this is enabled, the applications scale factor will match - the scale factor of the monitor with the greater value, in case the monitor - defined in 'app-scale-factor-monitor' is not provided or available. - - - - - [ - 'application://ubiquity.desktop', - 'application://org.gnome.Nautilus.desktop', - 'application://firefox.desktop', - 'application://libreoffice-writer.desktop', - 'application://libreoffice-calc.desktop', - 'application://libreoffice-impress.desktop', - 'application://ubuntu-software-center.desktop', - 'application://ubuntu-amazon-default.desktop', - 'application://unity-control-center.desktop', - 'unity://running-apps', - 'unity://expo-icon', - 'unity://devices' - ] - List of items that should be shown by default in the launcher - These items can be: application://desktop-id.desktop, device://uiid and unity://special-id (including: unity://running-apps (icons of running applications) unity://devices (icons of attached devices), unity://expo-icon (icon of the workspace switcher) and unity://desktop-icon (the show-desktop icon)); the order of this list determines the launcher item's position. - - - [ - 'application:///dialer-app.desktop', - 'application:///messaging-app.desktop', - 'application:///address-book-app.desktop', - 'application:///ubuntu-system-settings.desktop', - 'appid://com.ubuntu.camera/camera/current-user-version', - 'appid://com.ubuntu.gallery/gallery/current-user-version', - 'application:///webbrowser-app.desktop' - ] - List of items that should be shown by default in the launcher - These items can be: application:///desktop-id.desktop or appid://package/app/current-user-version. - - - '' - Version of last migration done - This is a detection key for the favorite migration script to know whether the needed migration is done or not. - - - - - [] - List of device uuid blacklist from the launcher. - These devices are not shown in the launcher by default. - - - - - [ 'home.scope', 'applications.scope', 'files.scope', 'video.scope', 'music.scope', 'photos.scope', 'social.scope' ] - List of scope ids specifying which scopes should be created and the order to display them in. - The scopes listed in the scope bar will be ordered according to this list. - - - [ 'scope://clickscope', 'scope://musicaggregator', 'scope://videoaggregator' ] - List of scope queries specifying what should be displayed in the dash. - List of favorite scopes displayed in the dash. - - - - - 175 - - Milliseconds to wait before considering a mouse pressure a grab - The number of ms to wait before starting the window movement (and then - showing the proper mouse cursor, and grabbing the window) - - - - - 15 - - Number of pixels to ignore on mouse pressure - This value define how many pixels the user can move the mouse - when holding the mouse button, before we consider his action a movement - (to grab the window). - - - 0 - - Milliseconds to wait before activating a menu after mouse release - The number of ms to wait after a mouse button release event before considering - it a click. When this value is greater than 0, then it's possible to maximize - a window by double-clicking on its menus if the second click happens before the - specified value of ms is elapsed - - - true - Whether to pop-up a menu when clicking over unfocused windows entries - By disabling this setting you can make unity to only focus a window - when clicking over unfocused menu entries - - - diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala index f0abb4d..23d79f9 100644 --- a/src/arctica-greeter.vala +++ b/src/arctica-greeter.vala @@ -119,7 +119,7 @@ public class ArcticaGreeter main_window.show_shutdown_dialog (dialog_type); }); dbus_object.close_dialog.connect ((type) => { main_window.close_shutdown_dialog (); }); - Bus.own_name (BusType.SESSION, "org.ArcticaProject.ArcticaGreeterSession", BusNameOwnerFlags.NONE, + Bus.own_name (BusType.SESSION, "org.gnome.SessionManager", BusNameOwnerFlags.NONE, (c) => { try @@ -132,7 +132,7 @@ public class ArcticaGreeter } }, null, - () => debug ("Failed to acquire name org.ArcticaProject.ArcticaGreeterSession")); + () => debug ("Failed to acquire name org.gnome.SessionManager")); start_fake_wm (); Gdk.threads_add_idle (ready_cb); -- cgit v1.2.3