How to set the same display of RSclient application windows for root and user?

When starting the application RSclient the appearance of the application windows launched by the user with the rights root may differ from the appearance of the application windows launched by a normal user with the user rights. The reason for this is the absence of certain variables in the user’s environment root, which are responsible for displaying Qt applications. This is because the user root does not have its own graphical shell and does not initialize the required variables.

In order for Qt applications to appear as user root when launching Qt, the window looks the same as that of user user, just add the following variable to the user’s environment root:

export XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME

or:

export XDG_CURRENT_DESKTOP="Unity"

depending on what value of this variable is set for the user.