0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Kali Linux on WSL2 の win-kex で xfce4 以外を使う

Posted at

はじめに

アップストリームで採用して欲しいけど、とりえあず win-kex の起動スクリプトを直接書き換える。
一応、i3wm に変更して問題なく動作している。

変更

XSTARTUP が定義されていたら、そちらを見るようにする。

*** kex.orig	Mon May 13 10:29:17 2024
--- kex	Mon May 13 10:29:35 2024
***************
*** 9,15 ****
  reset='\033[0m'
  
  WINKEXDIR="/usr/lib/win-kex"
! XSTARTUP="${WINKEXDIR}/xstartup"
  XRDPINI="/etc/xrdp/xrdp.ini"
  XRDPSERVICE="${WINKEXDIR}/xrdp/xrdpservice"
  XSERV="${WINKEXDIR}/VcXsrv/vcxsrv.exe"
--- 9,15 ----
  reset='\033[0m'
  
  WINKEXDIR="/usr/lib/win-kex"
! [[ -z "$XSTARTUP" ]] && XSTARTUP="${WINKEXDIR}/xstartup"
  XRDPINI="/etc/xrdp/xrdp.ini"
  XRDPSERVICE="${WINKEXDIR}/xrdp/xrdpservice"
  XSERV="${WINKEXDIR}/VcXsrv/vcxsrv.exe"

/usr/lib/win-kex/xstartup をホームディレクトリにコピー、最終行の startxfce4 を exec i3 に変更し、自分のホームディレクトリの xstartup で起動する

env XSTARTUP=$HOME/xstartup win-kex --win -s
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?