Incorrect layout name in input source list, and CFErrorDomainLaunchd error 4 with "Install for all users"

473 views
Skip to first unread message

Ashok Bhaskar

unread,
Sep 1, 2017, 11:16:39 PM9/1/17
to Ukelele Users
On El Capitan 10.11.6, I created a keyboard layout with Ukulele 3.2.5 starting from the default QWERTY layout "U.S." as current input source. I modified the layout and renamed it "Maltron (test version)" and saved it to my documents. Instead of using the Ukulele install function, I used Finder to copy the bundle, named "Maltron test", over to /Library/Keyboard Layouts. When I went to add the new layout to the list of input sources, however, it showed up not as "Maltron (test version)" but "U.S.", the same as the default QWERTY layout, though the modified layout seemed to work fine and I could switch between both "U.S." layouts (default QWERTY and customized Maltron).

I moved the bundle from /Library/Keyboard Layouts to the trash, then tried to install for all users via Ukulele, but I got the error message "The operation couldn't be completed. (CFErrorDomainLaunchd error 4.)" followed by another dialog box saying "Helper tool not installed". I then tried to install for the current user only via Ukulele, but I got the same result as when I used Finder to copy the bundle - the new layout shows up and works, but it's named "U.S." instead of "Maltron (test version)". Did I mess something up by using Finder to copy the keyboard bundle to the /Library/Keyboard Layouts folder and then move it to the trash? (I did not have the layout active when I moved the bundle to the trash). How can I install the bundle for all users and have the layout show up with its proper name?

Gé van Gasteren

unread,
Sep 2, 2017, 1:23:18 AM9/2/17
to ukelel...@googlegroups.com
Hi Ashok,

You renamed the keyboard layout file (in the Finder), but not the name of the keyboard layout inside that file.

Open your keyboard layout file in Ukelele, then go to menu Keyboard / Set Keyboard Name and Script…
and change the name there. What you set there is read by the OS and displayed in the Input Sources menu next to the flag – not the name of the file in which the layout is stored.

I hope your other problem was caused by having two layouts with the same system name, so just try installing your layout with Ukelele again (after properly renaming it!) using the menu option File / Install / Install For All Users, and see how it goes.

On 2 September 2017 at 05:16, Ashok Bhaskar <ash...@gmail.com> wrote:
On El Capitan 10.11.6, I created a keyboard layout with Ukulele 3.2.5 starting from the default QWERTY layout "U.S." as current input source. I modified the layout and renamed it "Maltron (test version)" and saved it to my documents. Instead of using the Ukulele install function, I used Finder to copy the bundle, named "Maltron test", over to /Library/Keyboard Layouts. When I went to add the new layout to the list of input sources, however, it showed up not as "Maltron (test version)" but "U.S.", the same as the default QWERTY layout, though the modified layout seemed to work fine and I could switch between both "U.S." layouts (default QWERTY and customized Maltron).

I moved the bundle from /Library/Keyboard Layouts to the trash, then tried to install for all users via Ukulele, but I got the error message "The operation couldn't be completed. (CFErrorDomainLaunchd error 4.)" followed by another dialog box saying "Helper tool not installed". I then tried to install for the current user only via Ukulele, but I got the same result as when I used Finder to copy the bundle - the new layout shows up and works, but it's named "U.S." instead of "Maltron (test version)". Did I mess something up by using Finder to copy the keyboard bundle to the /Library/Keyboard Layouts folder and then move it to the trash? (I did not have the layout active when I moved the bundle to the trash). How can I install the bundle for all users and have the layout show up with its proper name?

--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-users+unsubscribe@googlegroups.com.
To post to this group, send email to ukelel...@googlegroups.com.
Visit this group at https://groups.google.com/group/ukelele-users.
For more options, visit https://groups.google.com/d/optout.

Sorin Paliga

unread,
Sep 2, 2017, 1:41:19 AM9/2/17
to ukelel...@googlegroups.com
You must rename it within the application, not in the name of the file, that name may be any. It is not clear whether you did this. Then you must log out and re-log in or restart, sometimes this is needed. It is also recommended to change the keylayout ID (it is a number), in order to avoid conflicts.
On 2 Sep 2017, at 06:16, Ashok Bhaskar <ash...@gmail.com> wrote:

On El Capitan 10.11.6, I created a keyboard layout with Ukulele 3.2.5 starting from the default QWERTY layout "U.S." as current input source. I modified the layout and renamed it "Maltron (test version)" and saved it to my documents. Instead of using the Ukulele install function, I used Finder to copy the bundle, named "Maltron test", over to /Library/Keyboard Layouts. When I went to add the new layout to the list of input sources, however, it showed up not as "Maltron (test version)" but "U.S.", the same as the default QWERTY layout, though the modified layout seemed to work fine and I could switch between both "U.S." layouts (default QWERTY and customized Maltron).

I moved the bundle from /Library/Keyboard Layouts to the trash, then tried to install for all users via Ukulele, but I got the error message "The operation couldn't be completed. (CFErrorDomainLaunchd error 4.)" followed by another dialog box saying "Helper tool not installed". I then tried to install for the current user only via Ukulele, but I got the same result as when I used Finder to copy the bundle - the new layout shows up and works, but it's named "U.S." instead of "Maltron (test version)". Did I mess something up by using Finder to copy the keyboard bundle to the /Library/Keyboard Layouts folder and then move it to the trash? (I did not have the layout active when I moved the bundle to the trash). How can I install the bundle for all users and have the layout show up with its proper name?

--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-user...@googlegroups.com.

Ashok Bhaskar

unread,
Sep 2, 2017, 12:24:31 PM9/2/17
to Ukelele Users
I actually did rename the layout from within Ukulele before my attempts to install the bundle - the layout name is "Maltron (test version)", and the bundle name is "Maltron test".

Gé van Gasteren

unread,
Sep 2, 2017, 12:35:21 PM9/2/17
to ukelel...@googlegroups.com
Ashok,

Thanks for the clarification, but this stumps me: if you rename a layout properly, how could it show up in the menu as "U.S."?

So I can only advise to try the thing again: open the layout in Ukelele, Duplicate it and save under a modified name, install it, if possible with Ukelele, and see what happens.

Or you could experiment opening, duplicating, and modifying the U.S. layout again – just one key, for the time being – and see how that goes.

Otherwise you’ll have to wait for John, the developer, to come online...

To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-users+unsubscribe@googlegroups.com.

Gé van Gasteren

unread,
Sep 2, 2017, 12:39:31 PM9/2/17
to ukelel...@googlegroups.com
Ashok,

I forgot to mention one thing: after installing a keyboard layout, it usually turns up right away, but it’s good practice to log out your user and log back in, to reset some cashes or do other housekeeping stuff I don’t understand.
Reply all
Reply to author
Forward
0 new messages