コンテンツにスキップ

「Nemo」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
同期
シンタックスハイライト
44行目: 44行目:


以下の行を {{ic|~/.local/share/applications/mimeapps.list}} ファイルの Default Applications セクションに追加して下さい:
以下の行を {{ic|~/.local/share/applications/mimeapps.list}} ファイルの Default Applications セクションに追加して下さい:
[Default Applications]
{{bc2|<nowiki>[Default Applications]
inode/directory=nemo.desktop
inode/directory=nemo.desktop</nowiki>|ini}}


[[Xdg-open#デフォルトのファイルブラウザを設定]]も参照。
[[Xdg-open#デフォルトのファイルブラウザを設定]]も参照。
68行目: 68行目:
==== Clam スキャン ====
==== Clam スキャン ====


{{hc|$HOME/.local/share/nemo/actions/clamscan.nemo_action|
{{hc2|$HOME/.local/share/nemo/actions/clamscan.nemo_action|code=[Nemo Action]
2=[Nemo Action]
Name=Clam Scan
Name=Clam Scan
Comment=Clam Scan
Comment=Clam Scan

Exec=gnome-terminal -x sh -c "clamscan -r %F <nowiki>|</nowiki> less"
Exec=gnome-terminal -x sh -c "clamscan -r %F <nowiki>|</nowiki> less"

Icon-Name=bug-buddy
Icon-Name=bug-buddy

Selection=Any
Selection=Any
Extensions=dir;exe;dll;zip;gz;7z;rar;|lang=ini}}

Extensions=dir;exe;dll;zip;gz;7z;rar;
}}


==== ファイルの移動 ====
==== ファイルの移動 ====


{{hc|$HOME/.local/share/nemo/actions/archive.nemo_action|
{{hc2|$HOME/.local/share/nemo/actions/archive.nemo_action|code=[Nemo Action]
2=[Nemo Action]
Active=true
Active=true
Name=Archive %N
Name=Archive %N
91行目: 84行目:
Exec=<archive.py %F>
Exec=<archive.py %F>
Selection=S
Selection=S
Extensions=any;
Extensions=any;|lang=ini}}
}}


{{hc|$HOME/.local/share/nemo/actions/archive.py|
{{hc2|$HOME/.local/share/nemo/actions/archive.py|code=<nowiki>#!/usr/bin/python2 -OOt
2=#! /usr/bin/python2 -OOt
import sys
import sys
import os
import os
109行目: 100行目:
print arg
print arg
#os.rename('%s','%s.archive') % (arg,arg)
#os.rename('%s','%s.archive') % (arg,arg)
shutil.move(arg, arg+".archive")
shutil.move(arg, arg+".archive")</nowiki>|lang=python}}
}}


==== Meld による比較 ====
==== Meld による比較 ====


{{hc|$HOME/.local/share/nemo/actions/compare-save-for-later.nemo_action|2=
{{hc2|$HOME/.local/share/nemo/actions/compare-save-for-later.nemo_action|code=
[Nemo Action]
[Nemo Action]
Active=true
Active=true
122行目: 112行目:
Icon-Name=meld
Icon-Name=meld
Selection=S
Selection=S
Extensions=any
Extensions=any|lang=ini}}
}}


{{hc|$HOME/.local/share/nemo/actions/compare-with-saved.nemo_action|2=
{{hc2|$HOME/.local/share/nemo/actions/compare-with-saved.nemo_action|code=
[Nemo Action]
[Nemo Action]
Active=true
Active=true
133行目: 122行目:
Icon-Name=meld
Icon-Name=meld
Selection=S
Selection=S
Extensions=any
Extensions=any|lang=ini}}
}}


{{hc|$HOME/.local/share/nemo/actions/compare.sh|2=
{{hc2|$HOME/.local/share/nemo/actions/compare.sh|code=
#!/bin/bash
#!/bin/bash
savedfile=/var/tmp/compare-save-for-later.$USER
savedfile=/var/tmp/compare-save-for-later.$USER
144行目: 132行目:
else
else
"$comparator" $(cat "$savedfile") "$2"
"$comparator" $(cat "$savedfile") "$2"
fi|lang=sh}}
fi
}}


==== 空白を含むファイル名 ====
==== 空白を含むファイル名 ====

2016年10月15日 (土) 21:12時点における版

NemoGNOME Files のフォークです。Cinnamon デスクトップのデフォルトのファイルマネージャでもあります。Nemo は Nautilus 3.4 のコードをベースにしています。Nautilus 3.6 で type ahead find や分割ビューといった機能が削除されたことで Nemo が作成されました。

インストール

公式リポジトリから nemoインストールしてください。

エクステンション

Nemo に機能を追加できるプログラムがあります。そのようなことをするパッケージの一覧です:

  • Nemo File Roller — File Roller を Nemo に統合します。
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller || nemo-fileroller
  • Nemo Comparemeld を使って2つのファイルを比較するユーティリティ。
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-compare || nemo-compareAUR
  • Nemo Preview — Nemo に GtkClutter と Javascript ベースのクイックプレビューを追加します。
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-preview || nemo-preview
  • Nemo Seahorse — GnuPG を使って OpenPGP ファイルの暗号化・復号化を可能にします。
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-seahorse || nemo-seahorse
  • Nemo Share — Nemo の Samba エクステンション。
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-share || nemo-share
  • RabbitVCS Nemo — RabbitVCS を Nemo に統合します。
http://www.rabbitvcs.org/ || rabbitvcs-nemoAUR

他のエクステンションは AURnemo-extensions github リポジトリ を見て下さい。

設定

Nemo はグラフィカルに設定をすることができますが、nautilus の設定メニューから行える設定は全てではありません。dconf-editor を使って、もっと多くのオプションが org.nemo 下で利用できます。

デスクトップアイコンを表示・隠す

nemo のデスクトップアイコン表示機能を有効・無効にするには、次の設定を true か false に変更してください (false で非表示、true で表示):

$ gsettings set org.nemo.desktop show-desktop-icons false

上記の設定を行うとタイル型ウィンドウマネージャ (i3 など) で表示される WARNING **: Can not determine workarea, guessing at layout という警告が消えます。

Nemo をデフォルトのファイルブラウザにする

以下の行を ~/.local/share/applications/mimeapps.list ファイルの Default Applications セクションに追加して下さい: テンプレート:Bc2

Xdg-open#デフォルトのファイルブラウザを設定も参照。

"Open in terminal" メニューエントリのアプリケーションを変更する

デフォルトでは gnome-terminal が設定されているため、gnome-terminal がインストールされていないと、この機能が使えません。

gsettings を使うことでデフォルト設定を好きなターミナルアプリケーションに変更できます:

$ gsettings set org.cinnamon.desktop.default-applications.terminal exec terminal-name

Tips and tricks

Nemo アクション

Nemo では、ユーザーはコンテキストメニューに新しいエントリを追加することができます。ファイル /usr/share/nemo/actions/sample.nemo_action には Nemo のアクションのサンプルが含まれています。カスタムアクションファイルを配置するディレクトリは:

  • /usr/share/nemo/actions/ システム全体で使えるアクション
  • $HOME/.local/share/nemo/actions/ ユーザー別のアクション

名前の規則に注意してください。あなたのファイルは末尾が .nemo_action でなければなりません。

Clam スキャン

テンプレート:Hc2

ファイルの移動

テンプレート:Hc2

テンプレート:Hc2

Meld による比較

テンプレート:Hc2

テンプレート:Hc2

テンプレート:Hc2

空白を含むファイル名

デフォルトでは、Nemo はファイル名のエスケープをしません。つまり、複数のファイルを一度に扱うときにファイル名に空白が含まれていると上手くいきません。この問題を修正するには、Quote=double を使って下さい。