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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby magfan » May 29th, '12, 21:42

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?
Attachments
mcc_q_error.jpg
mcc_q_error.jpg (71.88 KiB) Viewed 1168 times
Last edited by magfan on May 30th, '12, 13:08, edited 1 time in total.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: mcc problem: closing when typing "q"

Postby djennings » May 29th, '12, 22:55

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.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: mcc problem: closing when typing "q"

Postby magfan » May 30th, '12, 07:14

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?
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: mcc problem: closing when typing "q"

Postby djennings » May 30th, '12, 08:53

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
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: mcc problem: closing when typing "q"

Postby magfan » May 30th, '12, 09:21

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?
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: mcc problem: closing when typing "q"

Postby djennings » May 30th, '12, 12:44

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") ],
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: mcc problem: closing when typing "q"

Postby magfan » May 30th, '12, 13:08

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?
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: mcc problem: closing when typing "q"

Postby isadora » May 30th, '12, 13:10

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
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

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

Postby djennings » May 30th, '12, 13:41

Glad it is working. That fix is just a quick hack, not a proper solution which should be done in the translate file.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron