Bug 507124

Summary: mc does not save configuration if ~/.mc directory does not exist
Product: [Fedora] Fedora Reporter: Dariusz Garbowski <thuforuk>
Component: mcAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: astakhovp, curtis, dvlasenk, jnovy, joi, mgarski, mitr, pknirsch, sergei.litvinenko, slavazanko, thuforuk, tim4dev, zenczykowski
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 508853 (view as bug list) Environment:
Last Closed: 2010-01-29 07:40:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dariusz Garbowski 2009-06-21 04:51:39 UTC
Description of problem:
mc does not save configuration if ~/.mc directory does not exist. If ~/.mc directory is manually created, config files will be saved just fine.

Version-Release number of selected component (if applicable):
$ rpm -qv mc
mc-4.6.2-10.fc11.i586


Steps to Reproduce:
1. Make sure that ~/.mc directory doesn't exist yet (e.g. like for a new user).
2. Start mc.
3. Press F9.
4. Select Options -> Configuration.
5. Put a check next to "Lynx-like motion".
6. Save configuration.
7. Quit mc.
8. Start mc.
  
Actual results:
Configuration has not been saved (~/.mc directory has not been created) and so user's configuration has not been saved. In scenario above "Lynx-like motion" is not working after restart.

Expected results:
mc creates ~/.mc directory and saves user configuration.

Additional info:
If the user creates ~/.mc directory manually, configuration files are saved as expected.

Comment 1 Peter (Zebar) Astakhov 2009-06-30 09:23:58 UTC
*** Bug 508853 has been marked as a duplicate of this bug. ***

Comment 2 Sergei LITVINENKO 2009-07-15 16:57:45 UTC
Have the same problem on F11 and on F11-x86_64

Comment 3 Maciej Żenczykowski 2009-08-04 21:17:59 UTC
509708 is a duplicate.  Also just ran into this.  Creating ~/.mc does indeed fix the problem.  The root user appears to be affected as well.  (FC11 x86_64)

Comment 4 Jindrich Novy 2009-08-05 05:06:32 UTC
*** Bug 509708 has been marked as a duplicate of this bug. ***

Comment 5 Jindrich Novy 2009-08-12 05:11:44 UTC
Does http://koji.fedoraproject.org/koji/taskinfo?taskID=1598069 fix the problem for you?

Comment 6 Marcin Garski 2009-08-12 16:59:58 UTC
For me it fix the problem (F11 x86-64) :)

Comment 7 Dariusz Garbowski 2009-08-13 02:44:33 UTC
I get the following:

# rpm -Uvh /1/download/fedora-11/mc-4.7.0-0.3.pre1.fc11.i586.rpm
Preparing...                ########################################### [100%]
   1:mc                     ########################################### [100%]
# mc
-bash: /usr/share/mc/bin/mc-wrapper.sh: No such file or directory
#

The same from unprivileged user accounts.

Comment 8 Marcin Garski 2009-08-13 09:22:30 UTC
Got the same, logout and login after mc upgrade.

Comment 9 Jindrich Novy 2009-08-13 11:19:30 UTC
Maybe I should suggest reboot in the update synopsis so that people won't run into the problem just after updating.

Comment 10 Dariusz Garbowski 2009-08-13 14:02:23 UTC
Reboot after upgrading mc? Really? This is a bit "heavy handed" solution to this issue. Even logout and login is too much, IMHO. Sounds like something I'd expect from "the other OS", not Linux. After all, mc is not kernel nor glibc... In addition, I wouldn't be surprised if you'll get bug reports against mc after upgrade and mc not working from users who will not re-login/reboot.

In any case, thanks for looking into this issue, Jindrich.

Comment 11 Dariusz Garbowski 2009-08-13 14:10:34 UTC
Hmm... I opened new Konsole and mc-4.7.0-0.3.pre1.fc11.i586 starts but I get the following dialog during startup from each user, regardless whether the user has ~/.mc directory with config saved or not:

--------------------------------------------------
Chosen display charset (Settings->Display bits)  │
or source codeset (in mcedit ctrl-t)             │
does not match one set via locale.               │
Set correct codeset manually or press <<Fix it>> │
to set locale default.                           │

Or set 'don't ask again' and press <<Skip>>      │

 [ ] don't ask again                             │

 [< Fix it >]                    [ Skip ]        │
--------------------------------------------------

$ echo $LANG
en_US.UTF-8

Comment 12 Dariusz Garbowski 2009-08-13 15:18:24 UTC
Oh, I haven't reported that the new mc actually saves its configuration ok (after opening new terminal, of course).

Comment 13 Yuri Timofeev 2009-10-26 12:05:53 UTC
Have the same problem on F11:

mc-4.6.2-9.pre1.fc11.i586.rpm

mc-4.6.2-10.fc11.i586.rpm

Comment 14 Slava Zanko 2010-01-29 01:37:15 UTC
Bug fixed in mc-4.7.0

Comment 15 Jindrich Novy 2010-01-29 07:40:26 UTC
There should be mc-4.7.0.1 in F11 already. Relevant link is:

https://admin.fedoraproject.org/updates/F11/FEDORA-2010-0139?_csrf_token=30eac16e2e0ba4b3956630e7dc3dc525a4dff473

So closing.