sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Keyboard Shortcuts on Mac Changed after Crash

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    8 Posts 4 Posters 377 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 4 Offline
      4hotshoez
      last edited by

      After SU crashed (importing a geo location), all of my customized keyboard shortcuts reverted back to the default. I am on Mac Yosemite, SU 2015. Is this normal? I would not think so. I have been having trouble with the shortcuts staying after I changed them and updated the plist. Can this be fixed with a setting, like, "don't do that"?

      SU 2016
      Win10 (64-bit), ASUS ZenBook Pro UX501J
      i7 2.6 Ghz, 16 GB RAM, 64-bit, 512 SSD
      NVIDIA GeForce GTX 960M, VRAM 2 GB
      32" Samsung SD850

      1 Reply Last reply Reply Quote 0
      • HornOxxH Offline
        HornOxx
        last edited by

        Hi Todd,
        certainly this bug is not normal and unfortunately I have no idea why this happened.
        For sure you know that you can save your shortcut settings by exporting them for importing
        them later again in case of a crash like yours for example or for sharing them with other users?

        Regards


        Shortcuts.jpg

        never trust a skinny cook

        1 Reply Last reply Reply Quote 0
        • S Offline
          slbaumgartner
          last edited by

          Unfortunately, the export and import are Windows only and he is on a Mac...

          1 Reply Last reply Reply Quote 0
          • D Offline
            driven
            last edited by

            just found something interesting...

            if you rename your plist and run

            %x( killall cfprefsd )
            

            to delete any system copy...
            then re-start SU and add one shortcut, on quit SU makes a new plist...

            except it doesn't create a fresh new one with one new shortcut, it looks like it imports it from any previous version of SU you have on your computer...

            so to get a pristine version, temporarily rename any others you may have...

            learn from the mistakes of others, you may not live long enough to make them all yourself...

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              BTW you can use this to check if your plist is corrupt

              %x(/usr/bin/plutil  "#{Sketchup.find_support_file("shortcuts.plist")}" 2>&1)
              

              with a deliberate error mine returns

              @unknownuser said:

              /Users/johns_iMac/Library/Application Support/SketchUp 2015/SketchUp/shortcuts.plist: Encountered unexpected character < on line 8 while looking for close tag

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • S Offline
                slbaumgartner
                last edited by

                A crash is, after all, an unanticipated fatal error. Nothing about it is "normal"! So there are few limits on what the app can trash on its way down. There is no way even to assure that a "don't do that" setting would be obeyed! The only hope is to back up the plist that saves the shortcuts and restore it (while SketchUp is not running) afterward. You will likely have to restart the cfprefsd to get it to load the new plist into its cache.

                1 Reply Last reply Reply Quote 0
                • 4 Offline
                  4hotshoez
                  last edited by

                  I also posted this same question on the Sketchup Forum and the oddity of the keyboard shortcuts reverting back to default was in a preferences cache. As long as I saved and closed SU properly the shortcuts.plist remained as I had modified it, but upon crashing, SU would rely upon the cache. And it did not change all keyboard shortcuts back to defaults as 2 or 3 remained intact, the ones I changed early on after installing, because I was experimenting.

                  This is what was said by a SU team member:

                  SU: "there's cfprefsd, that caches preferences, so what you see in an app may not be stored to disk. You need to clear that cache by restarting cfprefsd."

                  Me: How do I find "cfprefsd"?

                  SU: the easiest way is to open 'Ruby Console' in SU and enter this:
                  "%x( killall cfprefsd )"
                  and hit return...
                  then restart SU...

                  Just thought you all would like to know, this has fixed it, as far as I know, until the next crash. A copy of the plist has been saved.

                  Thanks for you imput

                  SU 2016
                  Win10 (64-bit), ASUS ZenBook Pro UX501J
                  i7 2.6 Ghz, 16 GB RAM, 64-bit, 512 SSD
                  NVIDIA GeForce GTX 960M, VRAM 2 GB
                  32" Samsung SD850

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    driven
                    last edited by

                    hi todd,
                    glad it's working for you...
                    btw. the "%x( killall cfprefsd )" bit on the SU forum was from me , I'm not an SU team member...
                    john

                    learn from the mistakes of others, you may not live long enough to make them all yourself...

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Buy SketchPlus
                    Buy SUbD
                    Buy WrapR
                    Buy eBook
                    Buy Modelur
                    Buy Vertex Tools
                    Buy SketchCuisine
                    Buy FormFonts

                    Advertisement