

When you select the 'Logout' menu from Xfce desktop, it only terminates the Xfce X410 will be remained open. When you close X410, xfce4-session also gets terminated along with the batch command window and WSL.Īutomatically Closing X410 When You Logout Xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false If you want to stop xfce4-session from ever launching those agents, you can use the following commands: xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false In order to terminate the agents since they are no longer needed or used, pkill '(gpg|ssh)-agent' is added. Those agents can still be running even after terminating the xfce4-session. When xfce4-session is launched, it automatically tries to start ssh-agent and gpg-agent. Thus in order to prevent such terminations and keep the Xfce desktop running, you should not append an '&'. Such termination also terminates the GUI apps running in background as their parent Bash shell (= internally launched by the kali.exe) has exited. If you append an '&' ( i.e., xfce4-session&), it'll be pushed to background and the kali.exe will be terminated immediately. Please also note that the "xfce4-session" doesn't have an '&'. Hence the if then ensures executing the following commands ( i.e., export DISPLAY=.) only when the Xfce desktop isn't already running. " pidof xfce4-session" Linux command returns the process ID of running xfce4-session (Xfce4 Session Manager). If you don't specify either argument, X410 will be in the same mode as the last time it was used. If you want to launch X410 in " Windowed Apps" mode, you should use the "/wm" command line argument.

If X410 is already running in "Windowed Apps" mode, it'll be shutdown and started again in "Desktop" mode. When "/dektop" is passed as a command line argument, X410 is launched in " Desktop" mode. Kali.exe run "if then export DISPLAY=127.0.0.1:0.0 xfce4-session pkill '(gpg|ssh)-agent' fi " Kali Linux.bat start /B x410.exe /desktop Enabling sound in WSL / Ubuntu - Let It Sing!.Installing Pantheon Desktop on Ubuntu (WSL).Running Xfce Desktop on Kali Linux (WSL).Customizing Xfce Desktop for Ubuntu (WSL).Creating a Windows Shortcut for Linux GUI Desktop (WSL).Get your sidekick for easily managing and launching Linux GUI apps (WSL).Setting the Theme for Linux GUI Apps (Windowed Apps Mode).Opening Firefox in WSL2 without Windows default title bar.Opening a genuine Linux terminal emulator directly from File Explorer.Running WSL2 Linux GUI apps like Windows apps in Ubuntu themes and colors.Disabling WSLg (or using it together with X410).Protecting X410 Public Access for WSL2 via Windows Defender Firewall.Why you should uninstall screen savers and lockers in WSL.Pin a Linux GUI app to Start or Taskbar.Directly opening Linux GUI apps from Windows batch files.

