[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [i3]Not able to get the reboot/suspend script work.



Anubhav Yadav <anubhav1691@gmail.com> writes:

>> Okay, I got you.
>>
>> First of all, if you want your i3wm to have the right PATH variable, you
>> should set it before him to run, i.e. in ~/.xsession file. Here's my
>
> Right now I have lightdm installed. In my lightdm.conf file I have this
> setting:
> user-session: i3
>
> And lightdm starts my i3.
>
> So If I make a .~/.xsession will it clash with my setup right now?

No. In case of lightdm the situation seems to be a bit different.

I'm using XDM which uses an old-style variant of loading a graphical
environment. XDM just executes /etc/X11/Xsession script that aims to
start your window manager. In order to do it, it loads different files
From user's home directory. One of them is "~/.xsession".

But lightdm uses the system of profiles that it calls (also)
"sessions". If you want to use my solution with lightdm display manager,
you should add a new profile which will execute /etc/X11/Xsession
script.

It will be some kind of this:

---------- /usr/share/xsessions/user-defined.desktop ----------
[Desktop Entry]
Name=user defined session
Exec=/etc/X11/Xsession
---------------------------------------------------------------

Attachment: pgpfKdo3u6reb.pgp
Description: PGP signature


Reply to: