일반적으로 로그인 화면의 오른쪽 상단에 표시되는 여러 표시기를 제거하고 싶습니다. 특히 접근성, 키보드 레이아웃, 전원 및 소리 표시기를 제거하고 싶지만 일반적으로 표시기를 추가하거나 제거하는 방법을 알고 있으면 좋을 것입니다. 어떻게해야합니까?
답변
다른 접근법으로 오기 :
$ pstree
init─┬─...
├─lightdm─┬─Xorg
│ ├─lightdm─┬─lightdm-greeter───unity-greeter───4*[{unity-greeter}]
...
$ dpkg -L unity-greeter
...
/usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml
...
$ more /usr/share/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml
...
<key name="indicators" type="as">
<default>['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator.
power', 'com.canonical.indicator.sound', 'application']</default>
<summary>Which indicators to load</summary>
</key>
...
unity-greeter
lightdm
사용자 가 실행합니다 ! dconf
해당 고스트 사용자 의 설정 을 변경하는 방법을 찾는 대신 . 나는 기본값을 무시합니다. Ubuntu 14.04 64 비트 (VirtualBox)에서 테스트되었습니다.
-
새
dconf
재정의 파일 만들기sudo nano /usr/share/glib-2.0/schemas/90_unity-greeter.gschema.override
유지하려는 표시기와 함께이 두 줄을 넣으십시오.
[com.canonical.unity-greeter] indicators=['com.canonical.indicator.session']
기본값은
['ug-accessibility', 'com.canonical.indicator.keyboard', 'com.canonical.indicator.session', 'com.canonical.indicator.datetime', 'com.canonical.indicator.power', 'com.canonical.indicator.sound', 'application']
-
glib
스키마 재 컴파일sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
-
디스플레이 관리자를 다시 시작하십시오.
sudo service lightdm restart
답변
LightDM을 사용하여 Ubuntu 14.04에서 시도한 한 가지 방법 (기본값); 에 저장된 일부 구성 파일 사용/usr/share/unity/indicators/
키보드 표시기를 숨기고 싶다고 가정 해 봅시다.
-
편집을 위해 해당 파일 열기
sudo nano /usr/share/unity/indicators/com.canonical.indicator.keyboard
-
숨길 모드에 대한 객체 경로 설명, 예를 들어 인사 화면에서 숨기고 화면 잠금
[Indicator Service] Name=indicator-keyboard ObjectPath=/com/canonical/indicator/keyboard Position=80 [desktop] ObjectPath=/com/canonical/indicator/keyboard/desktop #[desktop_greeter] #ObjectPath=/com/canonical/indicator/keyboard/desktop_greeter #[desktop_lockscreen] #ObjectPath=/com/canonical/indicator/keyboard/desktop_lockscreen [ubiquity] ObjectPath=/com/canonical/indicator/keyboard/desktop
-
디스플레이 관리자를 재부팅하거나 다시 시작하십시오.
sudo service lightdm restart