在 ubuntu 上创建新文件

在 ubuntu 上创建新文件

我已经使用 ubuntu 19.04 返回到 ubuntu 并尝试使用 rigth clik 创建一个新文件,但没有显示创建新文件的选项,是否可以在没有终端的情况下创建文件?

这是journalctl -b | grep nautilus

abr 29 17:23:18 user-MS-7850 dbus-daemon[1648]: [session uid=1000 pid=1648] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.128' (uid=1000 pid=6743 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
abr 29 17:23:47 user-MS-7850 dbus-daemon[966]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.643' (uid=1000 pid=6743 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
abr 29 17:23:47 user-MS-7850 nautilus[6743]: ../../../gobject/gsignal.c:2423: signal 'can-accept-item' is invalid for instance '0x55cd82f7c6b0' of type 'NautilusCanvasViewContainer'
abr 29 17:27:27 user-MS-7850 nautilus[6743]: Source ID 13589 was not found when attempting to remove it
abr 29 17:27:27 user-MS-7850 nautilus[6743]: Source ID 13843 was not found when attempting to remove it
abr 29 17:28:06 user-MS-7850 dbus-daemon[966]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.643' (uid=1000 pid=6743 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
abr 29 17:28:06 user-MS-7850 nautilus[6743]: ../../../gobject/gsignal.c:2423: signal 'can-accept-item' is invalid for instance '0x55cd82f7c910' of type 'NautilusCanvasViewContainer'
abr 29 17:28:27 user-MS-7850 nautilus[6743]: Source ID 17799 was not found when attempting to remove it
abr 29 17:28:28 user-MS-7850 nautilus[6743]: Source ID 18033 was not found when attempting to remove it
abr 29 17:28:29 user-MS-7850 nautilus[6743]: Source ID 18106 was not found when attempting to remove it
abr 29 18:36:36 user-MS-7850 nautilus[6743]: Called "net usershare info" but it failed: Falló al ejecutar el proceso hijo «net» (No such file or directory)
abr 29 18:38:23 user-MS-7850 dbus-daemon[966]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.695' (uid=1000 pid=6743 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
abr 29 18:38:24 user-MS-7850 nautilus[6743]: ../../../gobject/gsignal.c:2423: signal 'can-accept-item' is invalid for instance '0x55cd82f7c450' of type 'NautilusCanvasViewContainer'
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_label_set_markup: assertion 'GTK_IS_LABEL (label)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_label_set_markup: assertion 'GTK_IS_LABEL (label)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_get_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_transition_type: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_label_set_markup: assertion 'GTK_IS_LABEL (label)' failed
abr 29 18:39:12 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:17 user-MS-7850 nautilus[6743]: Source ID 102500 was not found when attempting to remove it
abr 29 18:39:17 user-MS-7850 nautilus[6743]: Source ID 102576 was not found when attempting to remove it
abr 29 18:39:19 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:19 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:19 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:19 user-MS-7850 nautilus[6743]: gtk_revealer_set_reveal_child: assertion 'GTK_IS_REVEALER (revealer)' failed
abr 29 18:39:39 user-MS-7850 nautilus[11601]: ../../../gobject/gsignal.c:2423: signal 'can-accept-item' is invalid for instance '0x55a356f12180' of type 'NautilusCanvasViewContainer'
abr 29 18:39:39 user-MS-7850 nautilus[11601]: Called "net usershare info" but it failed: Falló al ejecutar el proceso hijo «net» (No such file or directory)

答案1

您可以通过在文件夹中创建模板来启用“新建文档”上下文菜单项~/Templates。这些模板应该是空文档,除非您总是希望从一些预先输入的数据开始。

例如,

  1. 开始gedit,文本编辑器
  2. 按“保存”并将文档保存为“/home/username/Templates”中的“无标题”
  3. 打开nautilus文件管理器
  4. 右键单击文件管理器的空白区域,上下文菜单现在将允许您创建一个新的空白文本文档。

这也适用于各种 LibreOffice 文档类型,我猜也适用于许多其他文档类型。

在此处输入图片描述

在此处输入图片描述

相关内容