Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-01-31 20:13:00

kwizzz
Member
Registered: 2024-11-10
Posts: 18
LinuxFirefox 128.0

[Solved] Mousepad SMB issues: file externally modified after save

I am wondering if this is a bug with Mousepad or some other component.

* open Thunar, browse to a location on the local network via smb, e.g. smb://fritz.box/fritz.nas/documents/
* double click a plaintext file (size doesn't matter; e.g. test file "notes.txt" has 1.7 KiB) -> Mousepad opens
* do some edit with the file in Mousepad
* press C-s to save the file ->  the file gets saved, plus after an instant (maybe 1-2 seconds), I get the "Externally Modified" popup ("The document has been externally modified.  Do you want to reload from disk?")

Thing is that the file has not been modified externally.  Somehow Mousepad seems to forget that the modification has been done by itself when saving the file.
Is this a race condition?  A wrong setting somewhere?  A timing issue?  A bug to report somewhere (where? which component)?

(I am aware that in Mousepad I can disable this via Preferences menu in Mousepad, I want to keep this File monitoring setting, because it is vital for regular edits.)

Reproducible on debian 12.9 and openSUSE Leap 15.6.

Package versions openSUSE:

chris@calumma:~> rpm -qa | grep mousepad
mousepad-0.6.2-bp156.2.3.1.x86_64
mousepad-lang-0.6.2-bp156.2.3.1.noarch
libmousepad0-0.6.2-bp156.2.3.1.x86_64
chris@calumma:~> rpm -qa | egrep 'mousepad|thunar|gvfs|smb|cifs'
thunar-plugin-media-tags-lang-0.4.0-bp156.2.8.noarch
gvfs-backend-goa-1.52.2-150600.1.6.x86_64
python3-pysmbc-1.0.23-150400.6.69.x86_64
mousepad-0.6.2-bp156.2.3.1.x86_64
thunar-volman-4.18.0-bp156.2.7.x86_64
thunar-lang-4.18.11-bp156.2.3.1.noarch
thunar-plugin-media-tags-0.4.0-bp156.2.8.x86_64
gvfs-backends-1.52.2-150600.1.6.x86_64
gvfs-backend-samba-1.52.2-150600.1.6.x86_64
cifs-utils-6.15-150400.3.9.1.x86_64
thunar-sendto-blueman-2.3.5-bp156.2.4.noarch
gvfs-lang-1.52.2-150600.1.6.noarch
thunar-plugin-archive-0.5.2-bp156.1.3.x86_64
thunar-volman-branding-openSUSE-4.18.0+git4.79f6d44-lp156.10.1.noarch
thunar-4.18.11-bp156.2.3.1.x86_64
mousepad-lang-0.6.2-bp156.2.3.1.noarch
gvfs-backend-afc-1.52.2-150600.1.6.x86_64
libmousepad0-0.6.2-bp156.2.3.1.x86_64
thunar-volman-lang-4.18.0-bp156.2.7.noarch
libthunarx-3-0-4.18.11-bp156.2.3.1.x86_64
gvfs-1.52.2-150600.1.6.x86_64
gvfs-fuse-1.52.2-150600.1.6.x86_64
thunar-plugin-archive-lang-0.5.2-bp156.1.3.noarch

Last edited by kwizzz (2025-02-01 22:03:07)

Offline

#2 2025-01-31 22:23:37

Tamaranch
Member
Registered: 2020-12-31
Posts: 336
Windows 10Firefox 134.0

Re: [Solved] Mousepad SMB issues: file externally modified after save

Yes, it can happen, there's a hidden setting for that, which you can try increasing (it's in ms):

$ gsettings describe org.xfce.mousepad.preferences.file monitor-disabling-timer
File monitoring must be disabled when saving, to not consider own changes as external modifications. Increase this duration if Mousepad makes this error, probably because you are working with slow backup media. Otherwise, you should leave it alone.

You can try this:

gsettings set org.xfce.mousepad.preferences.file monitor-disabling-timer 2000

Offline

#3 2025-02-01 22:02:46

kwizzz
Member
Registered: 2024-11-10
Posts: 18
LinuxFirefox 128.0

Re: [Solved] Mousepad SMB issues: file externally modified after save

Wow, yet another command to add to the list of need-to-dig-into-this :-)
Thanks, it did the trick.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 528.8 KiB (Peak: 531.63 KiB) ]