yui*_*ict 17 file-roller nemo 14.04
最近我安装了 nemo 作为默认文件管理器来替换 nautilus。到目前为止,它工作得很好,除了我错过了“右键单击提取/压缩”这一事实。我已经在 Ubuntu 14.04 上通过 apt-get 命令安装了 nemo 2.2.2 和 nemo-fileroller。
我怎样才能拥有“提取/压缩”的右键菜单?
Wil*_*ilf 29
很简单,您需要做的就是安装nemo-fileroller
软件包:
sudo apt-get install nemo-fileroller
Run Code Online (Sandbox Code Playgroud)
要应用更改退出文件管理器
nemo -q
Run Code Online (Sandbox Code Playgroud)
然后像往常一样(重新)启动它。
小智 18
Okay, I've tried lots of "solutions" but none of them work, so I went and dug out how things work, and here's how I did it on Ubuntu 14.04 and Nemo 2.2.2...
cd ~/.local/share/nemo/actions/
nano compress.nemo_action
Paste this contents into newly created file
[Nemo Action]
Active=true
Name=Compress...
Comment=compress %N
Exec=file-roller -d %F
Icon-Name=gnome-mime-application-x-compress
Selection=Any
Extensions=any;
Run Code Online (Sandbox Code Playgroud)Save the file and exit (CTRL+X, and just Enter)
nano extracthere.nemo_action
Paste this contents into newly created file
[Nemo Action]
Active=true
Name=Extract here
Comment=Extract here
Exec=file-roller -h %F
Icon-Name=gnome-mime-application-x-compress
#Stock-Id=gtk-cdrom
Selection=Any
Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar;7z;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;
Run Code Online (Sandbox Code Playgroud)Save the file and exit (CTRL+X, and just Enter)
Nemo
, just restart or log out/in.Creating Nemo
actions is the only way I've achieved this, I've tried several repos and tutorial of which none worked.
小智 7
为了改进压缩/提取集成,我发布了一种 Escape-Safe 方式(因为名称中带有空格的文件夹会导致我的文件滚轮崩溃):
在以下位置创建以下.nemo_action
文件及其内容/usr/share/nemo/actions
:
compress.nemo_action:
【尼莫行动】 活动=真 名称=压缩... 评论=压缩“%f” exec=file-roller --add %F --default-dir=%P 图标名称=gnome-mime-application-x-compress 选择=非无 扩展=任何; 报价=双倍
提取here.nemo_action:
【尼莫行动】 活动=真 名称=在此处提取 评论=在此处提取“%f” Exec=file-roller --extract-here %F 图标名称=gnome-mime-application-x-compress 选择=非无 扩展=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz; 报价=双倍
提取到.nemo_action:
【尼莫行动】 活动=真 名称=提取到... Comment=解压到您选择的文件夹。 exec=file-roller --extract %F 图标名称=gnome-mime-application-x-compress 选择=非无 扩展=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz; 报价=双倍
小智 5
我相信上述 nemo 操作缺少“Quote=double”参数,否则名称中有空格的文件/目录将无法工作。例如
[Nemo Action]
Active=true
Name=Compress...
Comment=compress %N
Exec=file-roller -d %F
Icon-Name=gnome-mime-application-x-compress
Selection=any
Extensions=any;
Quote=double
Run Code Online (Sandbox Code Playgroud)
“提取到...”操作也很有用,它允许您选择可能要将文件提取到的不同路径。
例如
extractto.nemo_action
[Nemo Action]
Active=true
Name=Extract to...
Comment=Extract to...
Exec=file-roller -f %F
Icon-Name=gnome-mime-application-x-compress
#Stock-Id=gtk-cdrom
Selection=any
Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar;7z;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;
Quote=double
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
15883 次 |
最近记录: |