2018/11/22

GNOME 3 でマウントドライブをデスクトップに表示しないようにする方法

@GNOME 3.28.2

gvfs でいろいろマウントしているとデスクトップがゴチャゴチャになってくるアイコンが被ったりする。バグだよなぁ…ので、アイコンを表示しないように出来ないか調べてみた。

結論から言うと、dconf の `/org/gnome/nautilus/desktop/volumes-visible` を OFF にすればよい。
2018/11/01

GSettings と dconf の関係

「GNOME 3 の設定は [dconf](https://wiki.gnome.org/Projects/dconf) という設定管理システムに保存されていて、[GSettings]([GSettings](https://developer.gnome.org/platform-overview/stable/tech-gsettings.html.en) はそのラッパー」という程度に理解していたのですが、
[Vino の設定をしたり](https://kokufu.blogspot.com/2018/10/ubuntu-1804-vino.html) するうちに、理解が深まってきたのでまとめておこうと思います。

> 参考
>
> [First steps with GSettings – GTK+ Development Blog](https://blog.gtk.org/2017/05/01/first-steps-with-gsettings/)

2018/10/02

Gnome 3 の Favorite apps にカスタムアプリを登録する方法(コマンドラインで)

@ Ubuntu 18.04 LTS

[Unity のランチャにカスタムアプリを登録する(コマンドラインで)](https://kokufu.blogspot.com/2018/01/unity.html) で Ubuntu 16.04 用に書いた方法が
Ubuntu 18.04 では少し変更されました。

といっても、gsettings で指定するキーと形式が少し変わっただけです。

2017/09/10

Vino の設定は gconftool-2 では出来ない

2018/10/30 追記
Ubuntu 18.04 では設定方法が変わりました。
[Ubuntu 18.04 で Vino を有効にする方法(コマンドラインで) | 穀風](https://kokufu.blogspot.com/2018/10/ubuntu-1804-vino.html)
Ubuntu で Vino の設定をコマンドラインで行う場合、「`gconftool-2` を使う」と書いてあるサイトが沢山あるのですが、 既に `gconftool-2` は使えません。 `gconftool-2` は GNOME2 用の設定ツールなので、GNOME3正確には gtk+3 で導入された `gsettings` を使用しますUnity がベースにしている GNOME のバージョンがイマイチよくわからん…。 `gsettings` を使って、以下のように Vino を有効化することができます。 ```console `gutter: false; $ gsettings set org.gnome.Vino enabled true ``` 設定できる項目一覧は以下のように取得可能です。 ```console `gutter: false; $ gsettings list-keys org.gnome.Vino notify-on-connect alternative-port disable-background use-alternative-port icon-visibility use-upnp view-only enabled prompt-enabled disable-xdamage authentication-methods network-interface require-encryption mailto lock-screen-on-disconnect vnc-password ``` Ubuntu 18.04 LTS からデフォルトデスクトップが Unity ではなく GNOME に戻るようなので、またいろいろ変わるんだろうなぁ。 参考 - [vino - Enable remote VNC from the commandline? - Ask Ubuntu](https://askubuntu.com/a/265012) - [Gconf, Dconf, Gsettings and the relationship between them - Ask Ubuntu](https://askubuntu.com/questions/249887/gconf-dconf-gsettings-and-the-relationship-between-them) - [Growing Ubuntu for cloud and IoT, rather than phone and convergence | Ubuntu Insights](https://insights.ubuntu.com/2017/04/05/growing-ubuntu-for-cloud-and-iot-rather-than-phone-and-convergence/)
2013/01/26

gnome-tweak-tool の Window focus mode で Sloppy と Mouse の違い

最近、Ubuntu のデスクトップ環境を Unity から gnome-shell に変更しました。
gnome-shell は gnome-tweak-tool を使用して設定を変更できますが、その項目の中に Window focus mode というものがあります。
名前のごとく、どのタイミングで Window のフォーカスが変わるのか設定できるのですが、ちょっと項目がわかりにくかったので調べてみました。

gnome-tweak-tools

調べてみるとすぐ出てくるのですが、以下のページが参考になります。
focus - What's the difference between "mouse" and "sloppy"? - Ask Ubuntu

というわけで、以下のような意味だそうです。
Clickウィンドウをクリックした時にフォーカスするモード(デフォルト)
Windows と同じ
Mouseマウスオーバーした時にフォーカスするモード
マウスをデスクトップ上に移動させるとフォーカスが外れる
Sloppyマウスオーバーした時にフォーカスするモード
別のウィンドウ上にマウスが移動するまでフォーカスは維持される