태그 보관물: dconf

dconf

gsettings와 함께 사용할 SCHEMA / PATH / KEY 목록을 어디서 얻을 수 있습니까? 수 있습니다

몇 가지 연구를하고 후에, 나는 내가 빨리 사용하여 구성 옵션을 설정할 수 있습니다 발견 gsettings터미널에 명령을 대신 설치 dconf-editor하거나 gconf-editor또는 CCSM.

그러나 값을 설정하려면 SCHEMA / PATH 및 KEY가 필요합니다.
구문은 다음과 같습니다.

gsettings set SCHEMA[:PATH] KEY VALUE

예를 들어 실행기를 자동으로 숨기지 않으려면 :

gsettings set com.canonical.Unity2d.Launcher hide-mode 0

그리고 창이 실행기와 겹치지 않도록하려면 :

gsettings set com.canonical.Unity2d.Launcher use-strut true

그렇다면 gsettings로 설정할 수있는 모든 SCHEMA / PATH / KEY 목록을 어디서 얻을 수 있습니까?

아니요, gsettings list-keys가능한 수백 가지 스키마를 알 수 없으므로 명령을 제안 하지 마십시오.



답변

gsettings list-schemas모든 스키마를 얻습니다. 당신은 또한 사용할 수 있습니다 gsettings list-recursively당신이 원하는 무엇을하지만,이 프로그램은 모든 스키마에 대한 모든 키에 대한 모든 값을 나열합니다 :
(까 하나이다의 스크립트를 호출 gsettings-iterate-all)

#!/bin/bash
# Gnome 3 can be customised from the command line via the gsettings command
# This script should help you to find what you're looking for by
# listing the ranges for all keys for each schema

for schema in $(gsettings list-schemas | sort)
do
    for key in $(gsettings list-keys $schema | sort)
    do
        value="$(gsettings range $schema $key | tr "\n" " ")"
        echo "$schema :: $key :: $value"
    done
done

예제 gsettings-iterate-all | grep com.canonical.Unity2d.Launcher 수율을 늘리면

com.canonical.Unity2d.Launcher :: edge-decayrate :: type i
com.canonical.Unity2d.Launcher :: edge-overcome-pressure :: type i
com.canonical.Unity2d.Launcher :: edge-responsiveness :: type d
com.canonical.Unity2d.Launcher :: edge-reveal-pressure :: type i
com.canonical.Unity2d.Launcher :: edge-stop-velocity :: type i
com.canonical.Unity2d.Launcher :: hide-mode :: type i
com.canonical.Unity2d.Launcher :: only-one-launcher :: type b
com.canonical.Unity2d.Launcher :: reveal-mode :: type i
com.canonical.Unity2d.Launcher :: super-key-enable :: type b

쉽게 읽을 수 있도록 출력을 파일로 다시 라우팅 할 수 있습니다.

그리고 창조적 인 사람들을 위해. 다음은 다른 스크립트를 만드는 데 도움이되는 gsettings에 대한 가능한 옵션 목록입니다 .


답변

조금 늦었지만 방금이 개인 정보 보호 문제와 씨름하기 시작했습니다 …

것 같습니다 com.canonical.Unity.Lenses remote-content-search 'none'당신이 찾는 토글입니다.


답변