I start from console using xinitrc as I don't always need a WM/DE. I've
never used
qtile with a login manager, in fact, I can't remember the last time I ever
used a
login manager so I wasn't sure how other DMs handled it.

It looks like I could just add os.environ("XDG_CURRENT_SESSION") = "qtile"
in my
/usr/bin/qtile. I haven't tested this thoroughly, but in theory, it is what
I
imagine the login manager does to some extent. I'm not so much concerned
about
it since the plugin I am using is not my own and I could fork it to work
when
I do fresh installs.

Thank you for responding,

Ben


On Tue, Dec 17, 2013 at 3:03 PM, Tycho Andersen <[email protected]> wrote:

> Hi Ben,
>
> On Tue, Dec 17, 2013 at 12:09:18PM -0800, Ben Guitreau wrote:
> > Determining desktop:
> >
> > Success:
> >   wmctrl -m
> >
> > Failures:
> >   xprop -root
> >   echo $XDG_CURRENT_DESKTOP
> >   env
> >
> > Is there another way to find qtile as the desktop without having to
> install
> > wmctrl? Looking for
> > something that would be default for most installations.
> >
> > For context, this is an issue I am having using a plugin in Sublime Text
> > that checks for the desktop
> > before using specific commands that are dependent upon the OS and DE,
> i.e.
> > open, xdg-open,
> > exo-open. I can hard-code the plugin to use qtile by default but I would
> > like to have it be dynamic.
>
> How are you starting qtile? XDG_CURRENT_DESKTOP looks [1] like it
> might be done by the login manager instead of the window manager. That
> said, if there is some specification around this that we're not
> implementing correctly, I'd be glad to implement it.
>
> [1]: http://lists.freedesktop.org/archives/xdg/2011-July/012004.html
>
> \t
>
> --
> You received this message because you are subscribed to the Google Groups
> "qtile-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to