Change OneDrive Folder Location or Name on MacOS

Whether you are looking to run multiple OneDrive folders from a single Office365 Tennant or simply wish to rename or relocate your OneDrive folder (for easier identification) on your Mac, these steps should help you out!

First up, you need to have OneDrive already installed and (I suggest) completed a full Sync. If you are unsure of what you are doing, I *strongly* suggest you also make a backup of your OneDrive folder, just in case something goes wrong! After that, follow the steps below:

  1. Exit OneDrive by right-clicking on it in the MenuBar:
Right Clicking on OneDrive MenuBar item and pointing to select 'Quit OneDrive'
Right Click and Select ‘Quit OneDrive’

2. Open up a Terminal (I personally use iTerm, but you can use OSX’s Built In Terminal instead if you prefer

3. Run the following command replacing YOURUSERNAME with the username your profile directory resides in:

cd '/Users/YOURUSERNAME/Library/Application Support/OneDrive/Settings'

4. Ascertain which configuration directory contains the folder configuration you are looking for. The best way to do this is by running the below command (ensuring you replace SEARCHQUERY with the existing directory name that you are trying to rename)

grep -Ri 'SEARCHQUERY' *

You will get a response such as:
Business1/b23ae12f-30d4-4344-8b0c-ada2e6d1e274.ini: … [whole heap of information]

5. Back up the file by making a copy such as the below command (ensuring you replace my example with the filename returned by your query in the step above:

cp Business1/b23ae12f-30d4-4344-8b0c-ada2e6d1e274.ini Business1/b23ae12f-30d4-4344-8b0c-ada2e6d1e274.ini.bak2020-08-26
OR in template format:
cp YOUR.ini YourFolder/YOUR.ini.bakYYYY-MM-DD

6. Open the configuration file in your favourite text editor (whether that is VIM, BBEdit, or others) and change the folder name on the line that starts with ‘libraryScope’

7. Save and close the file

8. Rename or relocate your OneDrive folder BEFORE starting up OneDrive to the new name/location you entered in the configuration file in the steps above

9. Start OneDrive and it will pick up your folder in the new location and continue Syncing

Unable to Reset Printing System on MacOS High Sierra

If you are having printing system crashes on MacOS High Sierra, read on! After recently upgrading to MacOS High Sierra, I found that every time the OS loaded up a print dialogue, the application in question would crash.

Google reveals the best first step for this as to Reset the Printing System as documented by Apple. Please be warned, you will lose all your printers if you do this, however, it is likely a bad driver you are encountering so this will at least give you access to add new printers in.

However, I was unlucky enough to find this to be impossible. In my particular case, holding control on the System Preferences panel and clicking on printers, resulted in a crash of System Preferences.

So, if you have exhausted all possibilities MacManager put has a neat little script as defined on the MacOS Hints forum to get around this.


for printer in `lpstat -p | awk '{print $2}'`
echo Deleting $printer
lpadmin -x $printer

If you save this to a file called, then run on the command line/terminal ‘sh’, you will be able to remove all printers and should get access to the Printers and Scanners menu in System Preferences again. Note, you could adapt this to comment out the lpadmin -x $printer line and instead see the printer names, then try deleting them one by one, to hopefully find the bad one before you delete them all.

Hope this helps, now time for me to get back to installing printers again!

Pinentry and Pinentry-Curses on Mac OSX Backspace Issues

So this is going to be short and sweet… for those of you that are looking to use pinentry or pinentry-curses (at least in my case installed with Homebrew) that are having problems with the backspace character not working properly… this might just be up your alley.

Recently while using the LastPass CLI (for writing an integration with Alfred) on OSX Yosemite, I had an issue where pinentry-curses was registering the backspace character as a new character… not a backspace.

The fix was rather simple in the end… just execute the following in your terminal before the related command:


That seems to be enough for it to look correct (which if you just use linux the pinentry box looks very wrong as some characters are not recognised) and the backspace character now works correctly. It is a win win 😀

Hope that helps someone else!


Privacy Preference Center



    Utilised to provide advertising



    Utilised to enable Google Analytics