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

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!


How to run two versions of Firefox on Mac OSX concurrently

Running two versions of a browser on one machine is something that should be easy… but not always. Recently I needed to assist with deploying a fix to a slightly larger userbase than normal and provide the ability for Mac OSX users to concurrently run two versions of Firefox.

Therefore after researching this in my own time this weekend I have thrown together these simple launchers to make the process far more easy for everyone. If you follow the steps below you should be up and running in no time. Before we begin though PLEASE back up your existing Firefox Profile.

Firstly download the two versions of Firefox you want, for the latest build see the Latest Downloads page, or for the previous build see the Older Downloads page. Following that get your hands on the launchers I have created: Firefox Workaround Zip File.

The Easy Way:

Assumptions: You already have one version of Firefox installed on your machine and that you would like to run Firefox 3 and Firefox 4.

  1. If you have the older version of Firefox installed on your machine open the applications folder, click the existing Firefox Application and rename it to “Firefox 3”. Then install the new version of Firefox in the applications folder.
  2. If you have the newer version installed and want to install the older version along side, rather than dragging and dropping the old version to your applications folder to install. Drag it to your desktop first, rename it to Firefox 3 and then move it to the applications folder after it is renamed.
  3. Open Terminal and run “/Applications/Firefox\ -profilemanager -no-remote” this will load the Firefox 3 Profile Manager.
  4. You will have one profile already showing. If you wish to keep this for the latest version rename it to “Firefox-4” then create a new profile along side this called “Firefox-3” the names and case are important as the scripts use these to auto run the different versions. It should now look like this:
  5. Extract the Firefox Workaround Zip File to a location of your choosing. The two launchers can then be dragged onto your dock to use them for Launching the two versions of Firefox concurrently.

The Hard Way: so the assumptions above don’t apply?

OK so I am a realist, the above will only work for the aforementioned versions of Firefox and we would like to give you the ability to make some changes, or you want to name the folders differently (or whatever issues you may have).

  1. After you have downloaded the Firefox Workaround Zip File extract it to the Desktop
  2. Run Applications –> Automator
  3. Choose to open an existing workflow
  4. Open the Firefox 3 file extracted from the above zip
  5. In the script there are two things you can edit the ‘-a “Firefox 3″‘ defines the application name so if you wish to change the application name you can do so there, the ‘-P “Firefox-3″‘ defines the profile to use.
  6. As an example if you wish to call the application Firefox Old with a profile name of Original Firefox you would write:
  7. Save the scripts and they can now be used.

Because I am nice – A generic version of the loaders:

I figured that it might be nice to have a version of the loaders that will load any version of Firefox, one old and one new. Therefore if you download the Firefox Workaround Generic you can use the following settings:

New Firefox:
Application Name: Firefox
Profile Name: Firefox Default

Old Firefox:
Application Name: Firefox Old
Profile Name: Firefox Old

This should allow you to not have to continuously overwrite the loaders if you wish to have this available as a permanent solution. Then when a new major version is released, before you upgrade just replace the application names.

Let me know if you have any feedback or ways of improving this.