dconf 執行檔

  1. 測試 gsettings 設定 org.gtk.Settings.FileChooser 的 window-size,回應 dconf 錯誤。
    [dywang@deyu ~]$ GSETTINGS_SCHEMA_DIR=/usr/lib64/firefox/bundled/share/glib-2.0\
    /schemas/ gsettings set org.gtk.Settings.FileChooser window-size "(800,600)"
    
    (process:31050): dconf-WARNING **: failed to commit changes to dconf: 
    GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
    ca.desrt.dconf was not provided by any .service files
    
  2. 複製 CentOS 7 的 dconf 執行檔到 /usr/lib64/firefox/bundled/bin/。
    [root@deyu modules]# scp -p 192.168.122.7:/usr/bin/dconf /usr/lib64/firefox/bundled/bin/
    dconf                                         100%   49KB  48.9KB/s   00:00    
    
  3. 執行 dconf,缺少 libdconf.so.1 函式庫。
    [dywang@deyu ~]$ dconf 
    dconf: error while loading shared libraries: libdconf.so.1: 
    cannot open shared object file: No such file or directory
    
  4. 從 CentOS 7 (192.168.122.7) 同步 libdconf.so.1 模組到 /usr/lib64/firefox/bundled/lib64/。
    [root@deyu modules]# rsync -av 192.168.122.7:/usr/lib64/libdconf.so.1* \
    /usr/lib64/firefox/bundled/lib64/
    receiving incremental file list
    libdconf.so.1 -> libdconf.so.1.0.0
    libdconf.so.1.0.0
    
    sent 49 bytes  received 59024 bytes  39382.00 bytes/sec
    total size is 58905  speedup is 1.00
    
  5. 可以執行 dconf 了。
    [dywang@deyu ~]$ dconf 
    error: no command specified
    
    Usage:
      dconf COMMAND [ARGS...]
    
    Commands:
      help              Show this information
      read              Read the value of a key
      list              List the contents of a dir
      write             Change the value of a key
      reset             Reset the value of a key or dir
      compile           Compile a binary database from keyfiles
      update            Update the system databases
      watch             Watch a path for changes
      dump              Dump an entire subpath to stdout
      load              Populate a subpath from stdin
    
    Use 'dconf help COMMAND' to get detailed help.