Set custom avatars to Brave (Working !)

After referring to some conversations online, I found this method to successfully set a custom avatar for brave browser. This is what it looks like,

Steps to replicate the same:

Version 1.47.186 Chromium: 109.0.5414.119 (Official Build) (64-bit)
](https://brave.com/latest/)

OS : Ubuntu 22.04

  1. Create a profile photo of your choice. I have used emojis ( png files) from nicepng dot com.
  2. Enable hidden files in your browser and got to this path

~/.config/BraveSoftware/Brave-Browser

  1. You can see folders like Default, Profile 1, Profile 2, etc . Drop the png image to profile of your choice, I am going to change Profile 4, so I copied the image to respective folder.

  2. In the parent folder look for a file named " Local State ", this is where we are going to specify the instruction to use the custom image as avatar. Open the same in any text editor.

:stop_sign:EXIT THE BROWSER BEFORE EDITING THIS FILE :stop_sign:

  1. If you go through the contents, you can find a section for each profiles , add this line with the name of your png file

“gaia_picture_file_name”: “img-name.png”

  1. Done :star_struck: . Save the file and restart your browser.

PS: Let me know if this works and don’t try to change profile icon from the browser :sweat_smile:, since it goes back to the default one.

1 Like

Reference:

https://chromium.googlesource.com/chromium/src/+/lkgr/chrome/browser/profiles/profile_avatar_icon_util.cc#401

https://superuser.com/questions/449244/how-do-i-access-edit-the-chrome-user-avatar-images

Better option is to create an Avatars folder at ~/.config/BraveSoftware/Brave-Browser and place the images you want to use as profile picture there, don’t forget to rename them to any entry from this list.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.