Stephane asked for a help and got it. I also given him the best advice
based on my experience with "startx" shell script.
"$ sudo systemctl start display-manager.service" is most fail-safe
command to start desktop environment from console session on any
systemd-adopted distro.

Here is some example disadvantages of using "startx":
* "startx" often requires user to go extra mile and configure or keep
track of changes in ~/.xinitrc ~/.xsessionrc scripts.
* If you use Xfce and will start it by "startx" you will pass on display
manager and greeter, and if you manually lock your session at some point
with xflock4 you will get black screen without any way of unlocking it
other than logging into another tty and doing it from console. This is
understandable, because by using "startx" with Xfce you passed on
session and seat management.
* Some users could fire "sudo startx" at some point and give themselves
a good chance to ruin their system.

You can use whatever you want, as I already said it doesn't mean
"startx" doesn't exist or work anymore, and you have to understand there
is many ways to do something in Linux, but just any way doesn't always
means it is the right way.

To all respectable people, go ahead and grab pitchforks and torches
there is somebody with different\wrong opinion on The Internets.



On 17.10.2017 19:39, Greg Wooledge wrote:
> On Tue, Oct 17, 2017 at 07:32:11PM +0500, Alexander V. Makartsev wrote:
>> Deprecated doesn't mean it doesn't exist or work anymore at all, it
>> means it isn't supported anymore and should not be used.
>> Look it up, it [startx] was deprecated for quite some time.
> Quoting from
> https://www.debian.org/releases/stretch/amd64/release-notes/ch-whats-new.en.html
>
> ==========================================================================
> * Only the gdm3 display manager supports running X as a non-privileged
>   user in stretch. Other display managers will always run X as
>   root. Alternatively, you can also start X manually as a non-root user
>   on a virtual terminal via startx.
>
> When run as a regular user, the Xorg log will be available from
> ~/.local/share/xorg/.
> ==========================================================================
>
> Looks supported to me.

-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀ 

Reply via email to