~docky-core/plank/keybindings

« back to all changes in this revision

Viewing changes to lib/Factories/AbstractMain.vala

  • Committer: Rico Tzschichholz
  • Date: 2015-11-14 14:37:32 UTC
  • Revision ID: ricotz@ubuntu.com-20151114143732-2ghcsuo2mjfmrdz2
Add methods to check some desktop environment types

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
                        if (Gtk.Widget.get_default_direction () == Gtk.TextDirection.RTL)
269
269
                                message ("+ RTL support enabled");
270
270
                        
 
271
                        environment_initialize ();
 
272
                        
271
273
                        // Make sure we are not doing silly things like trying to run in a wayland-session!
272
 
                        if (!(Gdk.Screen.get_default () is Gdk.X11.Screen)) {
 
274
                        if (!environment_is_session_type (XdgSessionType.X11)) {
273
275
                                critical ("Only X11 environments are supported.");
274
276
                                quit ();
275
277
                                return;