Page 1 of 1

[SOLVED] mcc problem: closing when typing "q"

PostPosted: May 29th, '12, 21:42
by magfan
Hello,

even upgrading from Mageia 1 to Mageia 2 did not resolve an annoying problem with the Mageia Control Center. When ever I press the key "q" in the konsole window mcc shuts down immediately. So I cannot type something like "rpm -qa | grep ***" because mcc shuts down already after the letter "q". Also the menu shows that "q" instead of "Ctrl+q" is used to close mcc. How can I change this behavior?

Re: mcc problem: closing when typing "q"

PostPosted: May 29th, '12, 22:55
by djennings
Assuming the only difference between your drakconf in German, and mine in English is the translate file, try this.

I am not sure if the file is in clear text or not, but if you take a look at /usr/share/locale/de/LC_MESSAGES/drakconf.mo

and look for the text
Code: Select all
#: ../control-center:626
   #, c-format
   msgid "<control>Q"
   msgstr "<STRG>Q"


replace STRG with control

You might like to raise a bug so the translate team can correct it.

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 07:14
by magfan
I do not find lines like those you mentioned in drakconf.mo. Even decompiling to drakconf.po does not help. Are there any other configuration files for drakconf?

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 08:53
by djennings
I looked up the source code on svn at. svnweb.mageia.org/soft/control-center/trunk/po/de.po?revision=3286&view=markup

As far as I know this is the only file unique to drakconf in German. If you look at the other translations they do not translate <control>Q

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 09:21
by magfan
OK, but on my system there is only drakconf.mo installed. From this file I could decompile drakconf.po but this file does not contain the lines of code you mention. The file you refer to is something like "de.po". There are many files with this name on my system. But no one related to mcc. What could I try?

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 12:44
by djennings
The other way to fix this problem is edit the code so it does not try to translate the Ctl+Q at all
Try this
in /usr/sbin/drakconf.real around line 624
Code: Select all
my @menu_items = (
                  [ N("/_File"), undef, undef, undef, '<Branch>' ],
                  [ N("/_File") . N("/_Quit"), N("<control>Q"), \&quit_global, undef, '<Item>', N("Quit") ],


Change it to
Code: Select all
my @menu_items = (
                  [ N("/_File"), undef, undef, undef, '<Branch>' ],
                  [ N("/_File") . N("/_Quit"), "<control>Q", \&quit_global, undef, '<Item>', N("Quit") ],

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 13:08
by magfan
Great! Thanks a lot! It is working now.

So, I should mark this thread as [solved]. But how to create a bug report for this?

Re: mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 13:10
by isadora
magfan wrote:Great! Thanks a lot! It is working now.

So, I should mark this thread as [solved]. But how to create a bug report for this?

Take a look at:
https://wiki.mageia.org/en/How_to_report_a_bug_properly

Re: [SOLVED] mcc problem: closing when typing "q"

PostPosted: May 30th, '12, 13:41
by djennings
Glad it is working. That fix is just a quick hack, not a proper solution which should be done in the translate file.