Problem Loading Custom Keyboard Shortcuts
Forum rules
This forum is for Audacity on GNU/Linux.
Please state:
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state:
- which version of Linux you are using,
- the exact three-section version number of Audacity from Help menu > About Audacity,
- whether you installed your distribution's release, PPA version, or compiled Audacity from source code.
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Problem Loading Custom Keyboard Shortcuts
I have customized my keyboard shortcuts and saved them to an xml file in Windows, which loads without issue when I start Audacity. I've attempted to load the same xml file in my Linux version, but Audacity keeps reverting back to the default shortcuts. How do I get Audacity to keep the custom xml file loaded?
Thoughts and/or advice would be appreciated.
Thoughts and/or advice would be appreciated.
Re: Problem Loading Custom Keyboard Shortcuts
Which version of Audacity do you have? (look in "Help > About Audacity")
Which Linux distribution are you using?
Could you attach the XML file to your post - if the forum does not allow .XML files, add .txt to the name.
Which Linux distribution are you using?
Could you attach the XML file to your post - if the forum does not allow .XML files, add .txt to the name.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Problem Loading Custom Keyboard Shortcuts
Hi Steve,steve wrote:Which version of Audacity do you have? (look in "Help > About Audacity")
Which Linux distribution are you using?
Could you attach the XML file to your post - if the forum does not allow .XML files, add .txt to the name.
Thanks for getting back to me. I'm using version 2.0.1 and my distro is LMDE (UP5)/Xfce.
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Problem Loading Custom Keyboard Shortcuts
Thanks for the report.
I haven't spent too long looking at this, but it looks like it isn't a compatibility problem between platforms but import of XML shortcut files has broken somehow.
In addition, did you really clear all the shortcuts in Audacity for which the bindings in the XML file are empty (" " ) ?
Anyway, I can reproduce:
1 On windows 7 in HEAD, open Keyboard Preferences, press "Defaults"
2 Find "Previous Tool", which is shortcut "A", press "Clear"
3 Find "Append Record", Set as "A", Export...
4 Press OK (new shortcut works)
5 Transfer exported XML file over network to Ubuntu 12.04 machine
6 Import the XML file, I see in the commands list in Preferences that "Append Record" is set to "A" and "Previous Tool" is empty.
7 Press OK.
8 Transport > Append Record menu item shows as "SHIFT + R" and
"A" operates Previous Tool.
If on Win 7 I repeat steps 1 to 4, then 6 to 7 (import the exported XML file), the custom shortcut reverts after OK in Preferences.
Still on Win 7, if I set Defaults, then set F10 (unallocated shortcut) for "Append Record", export and import the XML file, OK on Prefs, the custom shortcut is reverted. Same for setting "Save Project As" (which has no default binding) to "A".
All of the above tests are not an issue in 2.0.0 (even if I don't default bindings before export and import), so looks like a serious regression.
Gale
I haven't spent too long looking at this, but it looks like it isn't a compatibility problem between platforms but import of XML shortcut files has broken somehow.
In addition, did you really clear all the shortcuts in Audacity for which the bindings in the XML file are empty (" " ) ?
Anyway, I can reproduce:
1 On windows 7 in HEAD, open Keyboard Preferences, press "Defaults"
2 Find "Previous Tool", which is shortcut "A", press "Clear"
3 Find "Append Record", Set as "A", Export...
4 Press OK (new shortcut works)
5 Transfer exported XML file over network to Ubuntu 12.04 machine
6 Import the XML file, I see in the commands list in Preferences that "Append Record" is set to "A" and "Previous Tool" is empty.
7 Press OK.
8 Transport > Append Record menu item shows as "SHIFT + R" and
"A" operates Previous Tool.
If on Win 7 I repeat steps 1 to 4, then 6 to 7 (import the exported XML file), the custom shortcut reverts after OK in Preferences.
Still on Win 7, if I set Defaults, then set F10 (unallocated shortcut) for "Append Record", export and import the XML file, OK on Prefs, the custom shortcut is reverted. Same for setting "Save Project As" (which has no default binding) to "A".
All of the above tests are not an issue in 2.0.0 (even if I don't default bindings before export and import), so looks like a serious regression.
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Re: Problem Loading Custom Keyboard Shortcuts
I can confirm (on Linux, with Audacity 2.0.3) that imported shortcuts are not "sticking".
@Gale Does this need posting on Bugzilla as part of or separate from bug 530?
@Gale Does this need posting on Bugzilla as part of or separate from bug 530?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Problem Loading Custom Keyboard Shortcuts
Thanks for confirmation.steve wrote:I can confirm (on Linux, with Audacity 2.0.3) that imported shortcuts are not "sticking".
@Gale Does this need posting on Bugzilla as part of or separate from bug 530?
While it's likely the cause is the same, the symptoms are different and the rating would probably have to be higher so I made it a separate bug:
http://bugzilla.audacityteam.org/show_bug.cgi?id=594 .
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Re: Problem Loading Custom Keyboard Shortcuts
I did clear all the shortcuts with the exception of the ones that I've created. I have a pedal that is programmed to trigger specific shortcuts remotely in Audacity when I perform. If there's a problem with a shortcut, I can easily track it down when uncluttered. All works amazing well in Windows (I have an XP partition) and has for a very long time.Gale Andrews wrote:Thanks for the report.
Did you really clear all the shortcuts in Audacity for which the bindings in the XML file are empty (" " ) ?
Gale
I guess I'll have to wait until a fix is produced. Appreciate all your help in the meantime
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Problem Loading Custom Keyboard Shortcuts
It's a slight pain, but assuming the other default shortcuts do not get in the way, you could probably create the relatively few custom shortcuts you have in the Keyboard Preferences (this still works).Lawrie wrote:I guess I'll have to wait until a fix is produced.
If there is a conflict when setting a custom binding, clear the binding that conflicts.
Also the problem is only with the XML file, so you can still quit Audacity and edit audacity.cfg to list the changed keys only. In this example, the "CTRL + O" binding for "Open" is removed and given to "Save Project As" instead:
Code: Select all
[NewKeys]
Open=
SaveAs=Ctrl+O
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Re: Problem Loading Custom Keyboard Shortcuts
This is great! I was able to edit the .cfg file and add the few shortcuts I needed to use my pedal. Works perfectly.Gale Andrews wrote:Also the problem is only with the XML file, so you can still quit Audacity and edit audacity.cfg to list the changed keys only. In this example, the "CTRL + O" binding for "Open" is removed and given to "Save Project As" instead:GaleCode: Select all
[NewKeys] Open= SaveAs=Ctrl+O
Thanks Gale.
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Problem Loading Custom Keyboard Shortcuts
A patch has been committed which should fix this, so this fix should be in 2.0.4 Release.
Gale
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual