Changes in symlinked file cannot be saved
System information
Hardware Information:
- Memory: 32,0 GiB
- CPU: AMD Ryzen™ 5 5600 × 12
- GPU: AMD Radeon™ RX 6600
Software Information:
- OS: Fedora Linux 39 (Workstation Edition)
- OS-Type: 64-bit
- GNOME-Version: 45.0
- Windowmanager: Wayland
- Kernel-Version: Linux 6.5.6-300.fc39.x86_64
What is the version of GNOME Text Editor?
- 45.0-1.fc39
If the bug caused data loss, where was the file located?
The file is the symlink /etc/sysctl.d/99-sysctl.conf. It is linked to /etc/sysctl.conf. Opening and saving changes to the file directly works fine.
Text Editor Information
Text Editor (45.0)
GLib: 2.78.0 (2.78.0)
GTK: 4.12.3 (4.12.1)
GtkSourceView: 5.10.0 (5.10.0)
Libadwaita: 1.4.0 (1.4.0)
Enchant2: 2.5.0
gtk-theme-name: Adwaita-empty
GTK_THEME: unset
GdkDisplay: GdkWaylandDisplay
Documents Directory: /home/user/Dokumente
org.gnome.TextEditor restore-session = false [default=true]
org.gnome.TextEditor recolor-window = true
org.gnome.TextEditor show-map = true [default=false]
org.gnome.TextEditor custom-font = 'Monospace 11'
org.gnome.TextEditor tab-width = uint32 4 [default=uint32 8]
org.gnome.TextEditor show-line-numbers = true [default=false]
org.gnome.TextEditor style-scheme = 'Adwaita'
org.gnome.TextEditor wrap-text = true
org.gnome.TextEditor style-variant = 'follow'
org.gnome.TextEditor indent-style = 'tab'
org.gnome.TextEditor show-right-margin = false
org.gnome.TextEditor spellcheck = true
org.gnome.TextEditor auto-indent = true
org.gnome.TextEditor use-system-font = true
org.gnome.TextEditor keybindings = 'default'
org.gnome.TextEditor highlight-current-line = true [default=false]
org.gnome.TextEditor last-save-directory = ''
org.gnome.TextEditor auto-save-delay = uint32 3
org.gnome.TextEditor discover-settings = true
org.gnome.TextEditor enable-snippets = false
org.gnome.TextEditor line-height = 1.2
org.gnome.TextEditor indent-width = -1
org.gnome.TextEditor show-grid = false
org.gnome.TextEditor draw-spaces = @as []
org.gnome.TextEditor right-margin-position = uint32 80
org.gnome.TextEditor highlight-matching-brackets = true
Have you tested Nightly to see if the issue has been fixed? If not, why?
I have not tested Nightly as the current main version got released not too long ago and no commits look like they fixed the issue.
Bug information
Steps to reproduce
- Open a symlinked file outside of the home directory, for example in Fedora the file /etc/sysctl.d/99-sysctl.conf
- Make some changes in the file
- Now try to save the file
Current behaviour
When trying to save the symlinked file, the following error message appears:
Roughly translated, this message says that there are too many symlink levels, even though the symlink directly points to a file not far away in the file hierarchy (/etc/sysctl.conf), which is not a symlink.
The journal does not have any other useful information besides the same error message shown in the dialog box:
Okt 26 18:18:46 fedora gnome-text-edit[84365]: Failed to save document: Fehler beim Öffnen der Datei »/etc/sysctl.d/99-sysctl.conf«: Zu viele Ebenen aus symbolischen Links
Expected behaviour
The file should be saved successfully saved with no error messages.
Edited by Sebastian Hirsch