![Xubuntu에서 "사용자 전환"에 대한 키보드 단축키를 설정하는 방법은 무엇입니까?](https://rvso.com/image/1114975/Xubuntu%EC%97%90%EC%84%9C%20%22%EC%82%AC%EC%9A%A9%EC%9E%90%20%EC%A0%84%ED%99%98%22%EC%97%90%20%EB%8C%80%ED%95%9C%20%ED%82%A4%EB%B3%B4%EB%93%9C%20%EB%8B%A8%EC%B6%95%ED%82%A4%EB%A5%BC%20%EC%84%A4%EC%A0%95%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
Xubuntu(13.04)에서 키보드 단축키를 만들려고 하는데 명령에 무엇을 입력해야 할지 모르겠습니다. 사용자 전환을 호출하는 명령은 무엇입니까?
답변1
xfce4-panel에 내장된 '작업 버튼' 플러그인의 소스 코드를 확인했는데 사용자 전환 메커니즘은 을 사용하는 gdmflexiserver
반면, 대부분의 다른 작업은 매개변수를 사용하여 xfce4-session-logout
.
소스는 다음으로 가져왔습니다 apt-get source xfce4-panel
. 정보는 안에 있었어요 ~/xfce4-panel-4.10.0/plugins/actions/actions.c:
case ACTION_TYPE_SWITCH_USER:
succeed = g_spawn_command_line_async ("gdmflexiserver", &error);
break;
/usr/lib/lightdm/lightdm/gdmflexiserver
실제로는 단지 스크립트인 실행 파일을 에서 찾을 수 있습니다 .
#!/bin/sh
#
# Copyright (C) 2011 Canonical Ltd
# Author: Michael Terry <[email protected]>
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, version 3 of the License.
#
# See http://www.gnu.org/copyleft/gpl.html for the full text of the license.
if [ -z "$XDG_SEAT_PATH" ]; then
# something went wrong
exit 1
fi
dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.DisplayManager $XDG_SEAT_PATH org.freedesktop.DisplayManager.Seat.SwitchToGreeter
에는 없으므로 $PATH
스크립트에서 사용하는 경우 절대 경로를 지정해야 합니다. 다른 스위치가 필요한지 확실하지 않지만, 그렇다면 추가 정보를 추가하겠습니다.
스크립트에 대한 유용한 명령은 의 맨페이지에서도 찾을 수 있습니다 xfce4-session-logout
. 하지만 사용자 전환 작업은 이라는 다른 유틸리티를 사용하므로 맨페이지에는 언급되어 있지 않습니다 gdmflexiserver
.