Oct 31 2019 04:26 AM
I would like to have separate Edge Dev shortcuts on my dock for each of my profiles. Anyone know if this is possible to do with a parameter like --profile for instance?
--profile-directory="Profile 1"
Oct 31 2019 05:35 AM
Hi,
https://superuser.com/questions/377186/how-do-i-start-chrome-using-a-specified-user-profile
Replace Google chrome with the correct equivalent from Microsoft Edge
on Windows I can do this:
"C:\Users\USERNAME\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe" --profile-directory="Profile 3"
(this is on the Target of my Edge insider shortcut in properties)
--profile-directory="Profile 3"
The argument above tells Edge browser to load which folder from:
%LocalAppData%\Microsoft\Edge SxS\User Data
so if I create a different profile in Edge browser and name it "vskorpen", then Edge will create a new folder inside this folder
%LocalAppData%\Microsoft\Edge SxS\User Data
and name it "vskorpen"
so in the target of the Edge shortcut, i will add this argument:
--profile-directory="vskorpen"
Feb 09 2021 05:47 PM
I've tried what is suggestion as answer but it didn't seem to work for me?
Any way I can get two Edge icons in my dock. Perhaps something like chrome where I see a bit of the profile picture to help me know which icon is which profile?
Feb 10 2021 12:09 AM
@Francisv wrote:I've tried what is suggestion as answer but it didn't seem to work for me?
Any way I can get two Edge icons in my dock. Perhaps something like chrome where I see a bit of the profile picture to help me know which icon is which profile?
Yes I have 2 profiles in Edge and the profile picture is shown on Edge shortcut on taskbar, desktop etc.
Feb 10 2021 06:22 AM
Feb 10 2021 03:33 PM
@Francisv I'm not positive that's the right string on Mac, let me confirm with the team. Profiles may be handled a bit differently there.
Feb 10 2021 05:14 PM
Feb 11 2021 01:53 PM
Thanks for your patience on this @Francisv!
There's going to be a little trial and error here so please bear with me.
Can you try the string you've already tried, but leave the quotes off of your profile directory? Like this but with your username:
--profile-directory=Default
Let me know results, this may be the only change you need to make =)
Feb 11 2021 02:25 PM
I'm definitely doing something wrong/ don't know what to do... Do i first create an alias and change it in terminal?
Maybe I just wait until you can implement something in the settings that would make it easy to do for non technical people like me :\
Something like this : Chrome User-specific Desktop Shortcut - Super User
Thanks for your help
Feb 11 2021 04:05 PM
@Francisv I'm going to be honest, I don't work with Macs often so I don't know exactly where to find this but the name of the profile has to be the directory name, not the friendly name. So if you go to the Edge Dev directory you should see names something like "Profile 1" "Profile 2" and so on. That's what you'll need to use for that argument!
If you'd rather wait for a more friendly UI or a more complete guide I totally understand, I'll flag to the team that more clarity on how to set this up would be great =)
Feb 11 2021 04:55 PM
Thank you for your help but I think I'm just missing a little knowledge to make this happen.
If the implementation in the UI is going to take some time, perhaps it could be worth it to have someone take 10 minutes to do a little tutorial with 2-3 screenshots.
I would probably make a few people like me pretty happy!
Thanks again
Feb 12 2021 01:30 AM
Mar 15 2021 08:20 PM
I got this working with some dirty finagling. Some 'terminal' work involved.
First switched to the Edge data directory in 'terminal', like so
cd ~/Library/Application\ Support/Microsoft\ Edge
Then I searched for my 'profile' directories this dirty way,
find ./ -type f -name Preferences
Which gave me
.//Profile 1/Preferences
.//Default/Preferences
So I have 'Profile 1' and 'Default'
I tested with
open -a "Microsoft Edge" --args --profile-directory=Profile\ 1
and
open -a "Microsoft Edge" --args --profile-directory=Default
and I got the result I expected, and also I could see which profile was which based on naming without having to 'jq' through some json with the Preferences file.
Finally,
I created an Automator application for each profile to launch it per the included screenshot example, saved it as an application, gave it a custom Icon using 'Get Info' (you can google this' and then dropped it on my menu bar.
Disclaimer - i said it was dirty
Mar 16 2021 03:48 AM
Dec 02 2021 03:49 AM
Dec 02 2021 01:59 PM
@Michael_Schneider No idea why, if you run the command at the console any errors?
There's no avatar over the icon feature I've found for Edge, but it's been a while.
I just tried it again and it's worked, interested if any errors are returned.
Dec 02 2021 09:13 PM
@causticnoodles No, no errors the browser opens, but does not change the profile. It is just like clicking the normal edge icon. It starts the profile that has been used last time...
I guess there is not that much to misspell:
open -a "Microsoft Edge" --args --profile-directory=Default
It seems to ignore the profile argument.
Dec 07 2021 01:56 PM
Dec 11 2021 12:38 PM
Aug 09 2022 07:45 PM
I've found a new solution.
The first instance use:
open -a "Microsoft Edge" --args --profile-directory=Profile\ 1
To the second one use:
open -a "Microsoft Edge" -n --args --profile-directory=Profile\ 2
The -n
-n Open a new instance of the application(s) even if one is already running