MATE

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page MATE and the translation is 67% complete.
Other languages:

MATE (メイトではなくマテと発音します) は、「伝統的な」デスクトップ環境のルックアンドフィールを保つように設計された、GNOME 2 デスクトップ環境のフォークです。

MATE チームのマニフェストによると開発チームは、伝統的なデスクトップのルックアンドフィールを維持し、オープンな開発モデルを維持し、GNU/Linux ディストリビューションとのオープンな関係を持ち、ローエンドハードウェアのための良い代替として提供することを目標としています。

メモ
MATE のバグは Gentoo Bugzilla で報告することができます — 十分な詳細 (再現方法、emerge info、ログ、エラーメッセージ等) を提供してください。

インストール

アーキテクチャサポート

MATE は amd64 および x86 で利用可能です。2019 年 3 月時点で、testing バージョンが ~arm~arm64~loong および ~riscv で利用可能です。テストと問題の報告を行ってくれる人のサポートがあれば、他のアーキテクチャのサポートも検討されるでしょう。

USE フラグ

まずは mate-base/mate に対する USE フラグを希望に従って有効化または無効化してください。

USE flags for mate-base/mate Meta ebuild for MATE, a traditional desktop environment

base Install base MATE Desktop applications that are recommended for the most common usage; for example, this installs the file manager. Disable this and other USE flags if you want a more minimal MATE Desktop.
bluetooth Enable Bluetooth Support
extras Install additional MATE Desktop applications that are recommended for extended usage of the MATE Desktop as upstream sees it; for example, this installs MATE Desktop's office related applications. Disable this if you plan to use your own non-MATE Desktop alternatives or a custom mixture of MATE and non-MATE packages.
help Install gnome-extra/yelp to handle in application help menus and documentation browsing
notification Force notification daemon to default to MATE's notification daemon. Enabled by default. Disable if it causes conflicts with other installed desktop environments.
themes Install MATE Desktop's themes; if you use other themes, you can disable this to spare some space and time.

MATE をインストールする

プロファイル

デスクトップ環境を実行するときは、desktop プロファイルを実行することが強く推奨されます。例として amd64 を使用している場合は、これは以下を実行することで行えます:

root #eselect profile set default/linux/amd64/17.1/desktop
root #emerge -vauDU @world

Emerge

MATE デスクトップ環境メタパッケージをインストールするには、次のコマンドを実行してください:

root #emerge --ask --changed-use mate-base/mate

開発リリースサイクル

Gentoo includes both the stable 1.26 and development build 1.27 versions to give users a choice in deciding if they want to use MATE as the developers intended or, run the latest release with the understanding things may go wrong and bugs will need to be reported to bugs.gentoo.org and to the correct place at github.com/mate-desktop.

警告
上流としては、ユーザがこれを実行することを推奨しません。色々なものが壊れることがあるかもしれませんし、また実際壊れるでしょう。
ファイル /etc/portage/package.mask/mateマスクの例
=mate-*/* **

Using the wildcard in this config file will mean the system will skip 1.27 completely but allow upgrading to 1.28 once released.

メモ
This will need to be done again for 1.29's release.

使い方

システムのブートプロセス中に MATE を開始するには、ディスプレイマネージャ (SLiMGDMLightDM 等) または startx コマンドのいずれかを使用することができます。

ディスプレイマネージャ (DM)

ディスプレイマネージャを機能させるには、ディスプレイマネージャの構成で MATE セッション (mate-session) を指定してください; この操作は対話的に行うことができることもありますが、構成設定ファイルを修正する必要があるかもしれません。/etc/env.d/90xsession 内で XSESSION="Mate" を設定することにより、デフォルトのセッションを変更することもでき、よく行われます:

ファイル /etc/env.d/90xsessionMATE を有効化する
XSESSION="Mate"

MATE チームは LightDM をディスプレイマネージャとして推奨しています。x11-misc/lightdm をインストールしてください:

root #emerge --ask x11-misc/lightdm

OpenRC

デフォルトのディスプレイマネージャとして LightDM を設定してください:

ファイル /etc/conf.d/display-manager
DISPLAYMANAGER="lightdm"

ブート時に LightDM を開始するには、dbus および display-manager を default ランレベルに追加してください:

root #rc-update add dbus default
root #rc-update add display-manager default

今すぐ LightDM を開始するには:

root #rc-service dbus start
root #rc-service display-manager start

systemd

ブート時に LightDM を開始するには:

root #systemctl enable lightdm

今すぐ LightDM を開始するには:

root #systemctl start lightdm

手動起動

手動で MATE を開始するには、ユーザのホームディレクトリ内に ~/.xinitrc ファイルを作成してください。その内容は次のようにしてください:

ファイル ~/.xinitrc
exec mate-session

exec mate-sessionD-Bus の間のコミュニケーションを機能させるためには、dbus-launch が必要な場合があることに注意してください、例えば:

ファイル ~/.xinitrc
exec dbus-launch mate-session

デスクトップポータル

Wayland をサポートしようとするアプリケーションは、自身の一部の機能を XDG デスクトップポータルを使用するように切り換えました。 例えば、Flatpak からインストールされた Firefox は、デスクトップポータルの実装が無いと、ユーザのダウンロードディレクトリを開くのに失敗するでしょう。 そのため、MATE とともに動作するときには、xdg-desktop-portal-xapp が必要です。

root #emerge --ask sys-apps/xdg-desktop-portal-xapp

その後、すべてを正しく機能させるためには、ユーザはログアウトしてから再度グラフィカルセッションへとログインすべきです。

設定

Compositing

Compositing is not enabled by default. To enable compositing run System → Preferences → Windows and click the tick box alongside Enable software compositing window manager in the General tab.

Window centering

Window centering is not enabled by default. To enable window centering run System → Preferences → Windows and click the tick box alongside Center new windows in the Placement tab.

Window snapping

Window snapping is not enabled by default. To enable window snapping run System → Preferences → Windows and click on the tick box alongside Enable side by side tiling in the Placement tab.

アプリケーションメニューアイコンを変更する

アプリケーションメニューアイコンはデフォルトでは start-here に設定されています。別のアイコンを使用するためには、/usr/local/share/pixmaps などのフォルダにアイコンをコピーして、以下を実行してください:

user $gsettings set org.mate.panel.menubar icon-name <icon>

ここで icon はファイル拡張子を除いたアイコンの名前です。MATE パネルを再起動してください。

デスクトップアイコンを表示または非表示にする

デスクトップアイコンはデフォルトで有効化されています。これらは dconf を使用して、個別に非表示または表示にすることができます。

すべてのデスクトップアイコンを非表示にする

user $dconf write /org/mate/desktop/background/show-desktop-icons false

個別のアイコンを非表示にする

コンピュータのアイコンを非表示にするには:

user $dconf write /org/mate/caja/desktop/computer-icon-visible false

ユーザディレクトリのアイコンを非表示にするには:

user $dconf write /org/mate/caja/desktop/home-icon-visible false

ネットワークのアイコンを非表示にするには:

user $dconf write /org/mate/caja/desktop/network-icon-visible false

ごみ箱のアイコンを非表示にするには:

user $dconf write /org/mate/caja/desktop/trash-icon-visible false

マウントされているボリュームを非表示にするには:

user $dconf write /org/mate/caja/desktop/volumes-visible false

あるいは、デスクトップアイコンを表示または非表示にするためには、dconf エディターを使用することもできます。org → mate → caja → desktop と移動してください。

Show volume control

To control pulseaudio and see the volume control icon in the notification area, make sure to compile media-libs/libmatemixer with pulseaudio USE enabled.

アプリケーション

以下は、改名されて MATE デスクトップ環境に含まれている、GNOME 2 アプリケーションのリストです。

アイコン GNOME 2 MATE 種類
Mozo.png Alacarte (alacarte) Mozo (mozo) Menu editor
Desktop.png About GNOME (gnome-about) About MATE (mate-about) About Desktop Environment
Mate-disk-usage-analyzer.png Baobab (baobab) Disk Usage Analyzer (mate-disk-usage-analyzer) Disk usage analyzer
Preferences-desktop.png Control Center (gnome-control-center) Control Center (mate-control-center) Example
Gnome-mime-application-pdf.png Evince (evince) Atril (atril) Document Viewer
Mate-image.png Eye of GNOME (eog) Eye of MATE (eom) Image Viewer
Mate-zip.png File Roller (file-roller) Engrampa (engrampa) File Archive Manager
Mateconf.png GConf (gconftool-2, gconf-editor) MateConf (mateconftool-2, mateconf-editor) DE Configuration System
Pluma-text-editor.png Gedit (gedit) Pluma (pluma) テキストエディタ
Marco.png Metacity (metacity) Marco (marco) ウィンドウマネージャ
Caja-file-manager.png Nautilus (nautilus) Caja (caja) ファイルマネージャ
Mate-applets-screenshooter.png Take Screenshot (gnome-screenshot) Take Screenshot (mate_screenshot) Screen Capture Tool
Gnome-terminal.png Terminal (gnome-terminal) Terminal (mate-terminal) Terminal
Matedialog.png Zenity (zenity) MateDialog (matedialog) GTK Dialog Boxes

アプレット

以下は、改名されて MATE デスクトップ環境に含まれている、GNOME 2 パネルアプレットのリストです。

アイコン GNOME 2 MATE 種類
Mateweather.png gweather mateweather Panel Weather Applet
Mateinvest.png gnome-invest-applet mate-invest-applet Stock Tracking Applet
Mate-netspeed-applet.png gnome-netspeed-applet mate-netspeed-applet View Internet Speed
Mate-inhibit-applet.png gnome-inhibit-applet mate-inhibit-applet Inhibit Power Saving
User-trash-full.png gnome-trash-applet mate-trash-applet Shortcut to Trash
Mate-panel-notification-area.png gnome-panel-notification area mate-panel-notification-area Notification Area
Mate-panel-window-list.png gnome-panel-window-list mate-panel-window-list Switch Windows using the Taskbar
Mate-panel-window-menu.png gnome-panel-window-menu mate-panel-window-menu Switch Windows using a Menu
Mate-panel-workspace-switcher.png gnome-panel-workspace-switcher mate-panel-workspace-switcher Switch Workspaces
Mate-sticky-notes-applet.png gnome-sticky-notes-applet mate-sticky-notes-applet Create, View, Manage Sticky Notes

Autostart

MATE は、ユーザ単位で自動的にバイナリまたはスクリプトを実行することができます。

Autostart entries can be added via System → Preferences → Start Applications.

From the command-line, entries can be added in the ~/.config/autostart directory as XDG formatted .desktop files. Be sure to include a line that says X-MATE-Autostart-enabed=true. For example:

ファイル ~/.config/autostart/example.desktopMATE autostart example
[Desktop Entry]
Type=Application
Exec=/path/to/executable
Hidden=false
Name=Autostart example
Comment=This file shows that the line below is needed for MATE to autostart an executable
X-MATE-Autostart-enabled=true

FAQ

MATE は特定のサービスマネージャや init システムに依存していますか?

いいえ、MATE は OpenRC および systemd の両方とともに動作することがテストされており、他のサービスマネージャと init システム上でも動作するかもしれません (テストされていませんが、動作しない既知の理由はありません); systemd サポートはリリース 1.6 で追加されました。

MATE は GNOME パッケージと同時にインストールできますか、それともブロックされますか?

MATE パッケージは独自のカテゴリを使用するので、MATE と GNOME 3 は同時にインストールすることができ、いずれかをテストすることができます; さらに一歩進めると、MATE にトップパネルを持たせないようにすれば (トップパネルは GNOME 3 シェルの下に隠れてしまうため)、GNOME 3 内で mate-session を開始して、MATE と GNOME 3 を同時に実行することもできます。

How do I enable the panel shadow?

Due to a race condition, the panel shadow does not appear after logging in to the MATE desktop, even with compositing enabled. You must first copy /usr/share/applications/mate-panel.desktop to ~/.local/share/applications/mate-panel.desktop. Then set X-MATE-Autostart-Phase to Applications, and add a delay:

ファイル /usr/share/applications/mate-panel.desktop
X-MATE-Autostart-Phase=Applications
X-MATE-Autostart-Delay=2
X-MATE-Provides=windowmanager
X-MATE-Autostart-Notify=true

You may need to adjust the delay as needed. Finally, restart Marco with the following command:

user $marco --replace

デュアルスクリーンで MATE を使用する

When using MATE desktop with multiple screens, it must be emerged with the xinerama USE flag enabled. Specifically, the window manager that is powering mate-desktop, which is x11-wm/marco. This will solve issues like windows being maximized over both screens in MATE desktop.

Android スマートフォンで MATE を使用する

To connect Android devices and open them in mate-base/caja you need to compile gnome-base/gvfs with the mtp USE flag.

Can I replace the default screen-shot tool with X?

mate-screenshot is provided in mate-extra/mate-utils provides basic screenshot capabilities. If you don't like it and need a more advanced tool, like x11-misc/shutter you can replace the default behavior of the Print Screen button by editing the following configurations option with dconf-edtior:

org.mate.marco.keybinding-commands.command-screenshot $your-command

If you feel comfortable doing this with the command line you can do:

user $dconf write /org/mate/marco/keybinding-commands/command-screenshot \"foo\"

or with:

user $gsettings set org.mate.Marco.keybinding-commands command-screenshot 'foo'

シャットダウンダイアログにサスペンドとハイバネートのボタンが無い

If only "Restart Cancel Shutdown" buttons appear in the dialog, make sure both mate-base/mate-session-manager and mate-base/mate-power-manager were built with elogind flag.

削除

root #emerge --ask --depclean mate-base/mate $(qlist -IC 'mate-base/*')

MATE の名前を持つすべてのパッケージを削除するには (eix が必要です):

root #emerge --ask --depclean $(eix -I -# mate)

トラブルシューティング

GLib-GObject-ERROR: object GsmAutostartApp 0x73ca40 finalized while still in-construction

When you get this error (see ~/.materc-errors), it is usually preceded by a warning, fixing the warning could fix the problem; for example, when I get to see:

コード
mate-session[881]: WARNING: Could not parse desktop file /home/username/.config/autostart/some-naughty-broken-program.desktop: Key file does not have key 'Name'
mate-session[881]: GLib-GObject-ERROR: object GsmAutostartApp 0x73ca40 finalized while still in-construction

In this case, you can resolve this by moving away the desktop file or fixing it up by adding the Name key. If you want a clean start, you can move those files out of the way by backing them up:

user $for f in ~/.config/autostart/*.desktop ; do mv "${f}" "${f}.bak" ; done

Failure to emerge due to conflicts with x11-libs/gtk+:3 and x11-themes/mate-themes{,-meta}

Unfortunately, due to some packaging requirements, there is the potential for users to have an issue with proper dependency resolution when installing mate-themes{,-meta}. Generally speaking, the simplest solution is to oneshot the appropriate mate-themes package, allowing subsequent emerges to happen without issue. For example, if you have x11-libs/gtk+-3.18 installed, you will want to

root #emerge -1av '=mate-themes-3.18*'

or if you have gtk+-3.20 installed, you will want to

root #emerge -1av '=mate-themes-3.20*'

Failed to acquire org.freedesktop.timedate1.set-time: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:

In order to set the system time through the calendar applet or mate-control center (or through mate-admin) you will have to compile:

root #emerge --ask app-admin/openrc-settingsd

And then add it to the default run level:

root #rc-update add openrc-settingsd default

Logout and re-login and you'll be able to set the system time.

関連項目

  • Desktop environment — Gentoo で利用可能なデスクトップ環境の一覧を提供します。
  • KDE — 人気のPlasmaデスクトップ環境を含む、豊富なアプリケーションを開発しているフリーソフトウェアコミュニティです。
  • Gnome — a feature-rich desktop environment provided by the GNOME project.
  • Xfce — 高速で、かっこよく、ユーザフレンドリーであるように構築された、軽量なデスクトップ環境です。