Ticket #4076 (closed defect: invalid)
editor_option_save_position=true in ~/.config/mc/ini doesn't work
Reported by: | apio | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | mcedit | Version: | 4.8.24 |
Keywords: | editor_option_save_position | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description (last modified by andrew_b) (diff)
When i reopen file for edit, cursor is in the begin of the file instead it old place.
admin1c@gsu1cserver:~$ LC_MESSAGES=C mc -V GNU Midnight Commander 4.8.24 Built with GLib 2.56.4 Using the S-Lang library with terminfo database With builtin Editor and Aspell support With subshell support as default With support for background operations With mouse support on xterm and Linux console With support for X11 events With internationalization support With multiple codepages support Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; admin1c@gsu1cserver:~$ LC_MESSAGES=C mc -F Home directory: /home/admin1c Profile root directory: /home/admin1c [System data] Config directory: /etc/mc/ Data directory: /usr/share/mc/ File extension handlers: /usr/lib/mc/ext.d/ VFS plugins and scripts: /usr/lib/mc/ extfs.d: /usr/lib/mc/extfs.d/ fish: /usr/lib/mc/fish/ [User data] Config directory: /home/admin1c/.config/mc/ Data directory: /home/admin1c/.local/share/mc/ skins: /home/admin1c/.local/share/mc/skins/ extfs.d: /home/admin1c/.local/share/mc/extfs.d/ fish: /home/admin1c/.local/share/mc/fish/ mcedit macros: /home/admin1c/.local/share/mc/mc.macros mcedit external macros: /home/admin1c/.local/share/mc/mcedit/macros.d/macro.* Cache directory: /home/admin1c/.cache/mc/ admin1c@gsu1cserver:~$ mc --configure-options '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--srcdir=.' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--with-x' '--with-screen=slang' '--enable-aspell' '--disable-rpath' '--disable-static' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/mc-4.8.24=. -fstack-protector-strong -Wformat -Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
Change History
comment:1 Changed 5 years ago by andrew_b
- Version changed from master to 4.8.24
- Milestone changed from 4.8.25 to Future Releases
comment:5 Changed 5 years ago by andrew_b
Please show the output of
ls -lR ~/.config/mc ~/.local/share/mc ~/.cache/mc
comment:6 Changed 5 years ago by apio
Thank You very much for your diagnostic!!!
admin1c@gsu1cserver:~$ ls -l ~/.config/mc ~/.local/share/mc ~/.cache/mc /home/admin1c/.cache/mc: итого 8 drwx------ 2 root root 4096 дек 2 09:28 mcedit -rw-rw-r-- 1 admin1c admin1c 35 апр 24 20:28 Tree /home/admin1c/.config/mc: итого 16 -rw-rw-r-- 1 admin1c grp1cv8 32 янв 9 08:37 hotlist -rw-rw-r-- 1 admin1c grp1cv8 0 янв 9 08:37 hotlist.bak -rw-rw-r-- 1 admin1c admin1c 3765 апр 24 20:31 ini drwx------ 2 admin1c admin1c 4096 дек 2 09:28 mcedit -rw-rw-r-- 1 admin1c admin1c 823 апр 24 20:31 panels.ini /home/admin1c/.local/share/mc: итого 20 -rw-r--r-- 1 root root 135 янв 21 13:33 filepos -rw-r--r-- 1 admin1c grp1cv8 135 апр 24 20:32 filepos.tmp -rw------- 1 admin1c admin1c 4391 апр 24 20:32 history drwx------ 2 admin1c admin1c 4096 янв 26 21:33 mcedit
Some files owned by root. I fixed it and save cursor position is work. Its fine!!!
comment:7 Changed 5 years ago by andrew_b
- Status changed from new to closed
- Resolution set to invalid
- Milestone Future Releases deleted
Always use su - not just su to switch to root:
https://unix.stackexchange.com/questions/7013/why-do-we-use-su-and-not-just-su (in English)
https://www.altlinux.org/Su (in Russian)
Note: See
TracTickets for help on using
tickets.
Cannot confirm. Works fine for me for years.