如何在Nautilus中禁用“提取成功完成”对话框?


11

在Ubuntu 16.10中,每次我提取文件时,Nautilus都会显示“提取成功完成”对话框。

鹦鹉螺显示对话框[1]

如何使Nautilus静默完成提取(就像16.04中一样)?


您是否能够找到方法?
西德米特拉

天哪,这是一个非常烦人的对话!张贴在answers.launchpad.net/ubuntu/+source/nautilus/+question/443157
leoheck

1
我很确定对话实际上来自File-Roller,而不是来自Nautilus。
David Foerster

Answers:


2

进行包装,并删除--notify参数:

sudo mv /usr/bin/file-roller /usr/bin/file-roller_orig
sudo vi /usr/bin/file-roller

输入以下内容:

#!/bin/bash
p1=$1
p2=$2
p3=$3
p4=$4
p5=$5
p6=$6
if [[ $p2 == *"notify"* ]]; then
        p2=""
fi
/usr/bin/file-roller_orig $p1 $p2 $p3 $p4 $p5 $p6

然后授予文件执行权限:

sudo chmod +x /usr/bin/file-roller

0

您将需要获取文件滚轮源并还原此提交,然后构建/重新打包并安装

https://mail.gnome.org/archives/commits-list/2016-May/msg01732.html

--- file-roller-3.22.2.orig/nautilus/nautilus-fileroller.c
+++ file-roller-3.22.2/nautilus/nautilus-fileroller.c
@@ -82,7 +82,7 @@ extract_here_callback (NautilusMenuItem
        dir = nautilus_file_info_get_parent_uri (file);

        cmd = g_string_new ("file-roller");
-       g_string_append_printf (cmd," --extract-here --notify");
+       g_string_append_printf (cmd," --extract-here");

        g_free (dir);
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.