sed temp file appears in nautilus but not in ls -a

Bug #1944763 reported by Junior Martins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Unassigned

Bug Description

**Expected behaviour**:
Temp files created by sed should disappear from Nautilus after automatic deletion

**Observed behaviour**:
Temp files showed in Nautilus for some time.

**Description**:

After using:
sed -i 's/CAD/cad/g' FILENAME

The temp files created by sed (sed#####) continued showing in Nautilus for some minutes (they disappear if I close and reopen Nautilus), and I could interact with them (see permissions, double click to open (which errored out by not finding an app to open it), but couldn't change them (move, change permissions, delete)

These temp files did not appear with ls -a.

The file is 3.6kb long.

The behaviour doesn't happen with: sed -i 's/cad/CAD/g' FILENAME but only with: sed -i 's/CAD/cad/g' FILENAME

**Outputs**:

>>>df .
Sist. Arq. Blocos de 1K Usado Disponível Uso% Montado em
/dev/sda2 459924552 235486388 201005512 54% /

>>>lsb_release -rd:
Description: Ubuntu 21.04
Release: 21.04

>>>apt-cache policy nautilus
nautilus:
  Instalado: 1:3.38.2-1ubuntu2
  Candidato: 1:3.38.2-1ubuntu2
  Tabela de versão:
 *** 1:3.38.2-1ubuntu2 500
        500 http://mirror.ufscar.br/ubuntu hirsute-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:3.38.2-1ubuntu1 500
        500 http://mirror.ufscar.br/ubuntu hirsute/main amd64 Packages

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: nautilus 1:3.38.2-1ubuntu2
ProcVersionSignature: Ubuntu 5.11.0-34.36-generic 5.11.22
Uname: Linux 5.11.0-34-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 23 15:51:04 2021
ExecutablePath: /usr/bin/nautilus
GsettingsChanges:
 b'org.gnome.nautilus.window-state' b'initial-size' b'(860, 495)'
 b'org.gnome.nautilus.preferences' b'executable-text-activation' b"'ask'"
 b'org.gnome.nautilus.list-view' b'default-column-order' b"['name', 'size', 'type', 'owner', 'group', 'permissions', 'where', 'date_modified', 'date_modified_with_time', 'date_accessed', 'recency', 'starred', 'detailed_type']"
InstallationDate: Installed on 2021-04-20 (155 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
ProcEnviron:
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
 PATH=(custom, user)
 LANGUAGE=pt_BR:pt:en
 LANG=pt_BR.UTF-8
SourcePackage: nautilus
UpgradeStatus: Upgraded to hirsute on 2021-06-08 (107 days ago)
usr_lib_nautilus:
 evince 40.1-1
 file-roller 3.38.1-1
 nautilus-extension-gnome-terminal 3.38.1-1ubuntu1
 nautilus-share 0.7.3-2ubuntu3

Revision history for this message
Junior Martins (jrom) wrote :
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you share the output of

$ gio monitor <dir> (where <dir> is the path to the directory where you are doing the change)

which filesystem are you using?

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Junior Martins (jrom) wrote :

I used "gio monitor ." at the directory. I don't know what my filesystem is, but in AskUbuntu it was mentioned that I could use "df -T", I hope this helps.

DIRNAME is the absolute path of the directory (I can't show it, it has upper and lowercase characters and also spaces, it that's relevant), and it seemed to get worse, since now both
sedFJdiNs and sedoH8a25 showed in Nautilus. They disappeared when I pressed F5 about a minute later.

After sed -i 's/CAD/cad/g' dados_snps_AMR.tsv

.: DIRNAME/sedFJdiNs: created
.: DIRNAME/sedFJdiNs: changes done
.: DIRNAME/sedFJdiNs: attributes changed
.: DIRNAME/sedFJdiNs: changed
.: DIRNAME/sedFJdiNs: changes done
.: DIRNAME/sedFJdiNs: renamed to DIRNAME/dados_snps_AMR.tsv

After sed -i 's/cad/CAD/g' dados_snps_AMR.tsv

.: DIRNAME/sedoH8a25: created
.: DIRNAME/sedoH8a25: changes done
.: DIRNAME/sedoH8a25: attributes changed
.: DIRNAME/sedoH8a25: changed
.: DIRNAME/sedoH8a25: changes done
.: DIRNAME/sedoH8a25: renamed to DIRNAME/dados_snps_AMR.tsv

>>>df -T
Sist. Arq. Tipo Blocos de 1K Usado Disponível Uso% Montado em
tmpfs tmpfs 1625208 2032 1623176 1% /run
/dev/sda2 ext4 459924552 236713100 199778800 55% /
tmpfs tmpfs 8126032 49408 8076624 1% /dev/shm
tmpfs tmpfs 5120 4 5116 1% /run/lock
tmpfs tmpfs 4096 0 4096 0% /sys/fs/cgroup
/dev/sda1 vfat 523248 8332 514916 2% /boot/efi
tmpfs tmpfs 1625204 940 1624264 1% /run/user/1000

Changed in nautilus (Ubuntu):
status: Incomplete → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

The gio monitor seems to correctly notice the change, weird. There are some similar issues which had been reported upstream, for example https://gitlab.gnome.org/GNOME/nautilus/-/issues/288 but never without enough information to be debugged and resolved

Revision history for this message
Junior Martins (jrom) wrote :

I'm using GNOME 3.38.4 and I just tried mv, touch, mkdir, rmdir and cp, and Nautilus updated instantly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.