端末から Compiz 構成ファイルのインポート中にエラーが発生しました。

端末から Compiz 構成ファイルのインポート中にエラーが発生しました。

ファイル名: import.py


#!/usr/bin/python
import sys
import compizconfig

#The last input on the command line will be the path to save the file to.
savefile=sys.argv[-1]

context=compizconfig.Context()
#Change keyword if you want to skip saving entries that are default
context.Import(savefile)

compizエクスポートした設定ファイルをインポートするには、上記のPythonスクリプトフォームを使用していますTerminal

次のようになります。 (./import.py myCompizProfile.profile

すべての権限を付与しましたchmode 777 import.py。)

プログラムは完璧に動作します。これで問題は、同じコードを使用しようとすると機能しないことUbuntu 12.04 (Zorin OS)です。

Compiz(CompizConfig Settings Manager) version 0.9.5.92

Ubuntu 12.10 Genome Remix

Compiz(CompizConfig Settings Manager) version 0.9.8.6

エラーが発生しました:

./import.py myCompizProfile.profile
compizconfig - Info: Backend : gsettings
compizconfig - Info: Integration : true
compizconfig - Info: Profile : default

(process:11253): GLib-GIO-WARNING **: g_settings_set_value: value for key 'visual-bell-type'
in schema 'org.gnome.desktop.wm.preferences' is outside of valid range



Q:このエラーが発生するのはなぜですか?
このエラーをどのように解決できますか?

ベストアンサー1

org.gnome.desktop.wm.preferences.gschema.xml以下のタスクを使用してスキーマファイルを更新して、この問題を解決しました。

sudo gedit /usr/share/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.xml

visual-bell-typeデフォルト値を検索して変更します。

おすすめ記事