Brave taking very long to start after choosing QT appearance option because of kwallet


Description of the issue:
How can this issue be reproduced?

  1. use nix os without any KDE ecosystem stuff installed
  2. Press on “use QT” in appearance settings
  3. restart brave

Expected result:
Brave takes 1 minute 40seconds to start, even though it took like under 2 seconds before

Brave Version( check About Brave):
137.1.79.123

Additional Information:
When starting brave through the command-line it prints this:

[142705:142705:0619/083317.177867:ERROR:components/os_crypt/sync/kwallet_dbus.cc:117] Error contacting kwalletd6 (isEnabled)
[142705:142705:0619/083317.178370:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[142705:142705:0619/083317.178374:ERROR:components/os_crypt/sync/kwallet_dbus.cc:86] Error contacting klauncher to start kwalletd6
[142705:142705:0619/083342.203433:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd6: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[142705:142705:0619/083342.203444:ERROR:components/os_crypt/sync/kwallet_dbus.cc:412] Error contacting kwalletd6 (close)
[142705:142705:0619/083407.228560:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[142705:142705:0619/083407.228572:ERROR:components/os_crypt/sync/kwallet_dbus.cc:117] Error contacting kwalletd5 (isEnabled)
[142705:142705:0619/083407.229013:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[142705:142705:0619/083407.229015:ERROR:components/os_crypt/sync/kwallet_dbus.cc:86] Error contacting klauncher to start kwalletd5
[142705:142705:0619/083432.240986:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KWallet.close: object_path= /modules/kwalletd5: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[142705:142705:0619/083432.240995:ERROR:components/os_crypt/sync/kwallet_dbus.cc:412] Error contacting kwalletd5 (close)
[142705:142705:0619/083432.241517:ERROR:components/os_crypt/sync/kwallet_dbus.cc:117] Error contacting kwalletd (isEnabled)
[142705:142705:0619/083432.241829:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.kde.KLauncher.start_service_by_desktop_name: object_path= /KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name org.kde.klauncher was not provided by any .service files
[142705:142705:0619/083432.241831:ERROR:components/os_crypt/sync/kwallet_dbus.cc:86] Error contacting klauncher to start kwalletd
[142705:142705:0619/083432.241894:ERROR:components/os_crypt/sync/kwallet_dbus.cc:412] Error contacting kwalletd (close)
[142705:143587:0619/083432.340211:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[142705:143587:0619/083432.340420:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[142705:143587:0619/083432.340609:ERROR:dbus/object_proxy.cc:590] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[142705:142705:0619/083432.352602:ERROR:content/browser/network_service_instance_impl.cc:606] Network service crashed, restarting service.
[142705:142705:0619/083432.384429:ERROR:extensions/browser/service_worker/service_worker_task_queue.cc:202] DidStartWorkerFail eimadpbcbfnmbkopoojfekhnkhdbieeh: 3
[142705:142705:0619/083432.386680:ERROR:extensions/browser/service_worker/service_worker_task_queue.cc:202] DidStartWorkerFail bnomihfieiccainjcjblhegjgglakjdd: 3
[142705:142705:0619/083432.392777:ERROR:extensions/browser/service_worker/service_worker_task_queue.cc:202] DidStartWorkerFail fpnmgdkabkmnadcjpehmlllkndpkmiak: 3```

I did experience the same issue, do not know if brave is the cause or when updated something in Nixos ; (but I’m pretty sure it was brave)

There are workarounds : if you’re on nixos with gnome installed even if you use hyperland :wink:

with your favorite launcher you can launch brave with the following flags

brave --password-store=gnome (creating a shortcut can work also, gnome securely store information )
or

brave --password-store=basic (no encryption)
From your favorite CLI or tmux you can launch as well,

There is the possibility to make a shortcut and launching with the parameter i gave you above

I’m myself running Nixos with Hyprland ; and never have this error before…

Each time i was launching brave I had to close something and then brave was automatically launching (creating a wallet manager)

unfortunately, I did click next today and now, (the option never appear anymore and resulting to trying to launch the default kdeWallet, never installed nor used, (and hanging up for 1-2 mins before skipping Kwallet)

Frankly, I was quite displeased by that that I intend to use one of the others browser as my main Browsers!

To summ it up quickfix :

launch brave with your favorite launcher:

Rofi,

Fuzzel,

Tofi,

w/e it is
and add option :

Encrypted

brave --password-store=gnome

No encryption

brave --password-store=basic

FROM TERM:

in your ~/.zshrc or ~/.bashrc
alias brave=“brave --password-store=gnome”

then just have to type brave to launch with the parameter

Cheer fellow Nixos user!

I checked further, if you do not need qt6 and qt5 is enough, it does fix the problem for you ; qt6 install Kwallet, so remove the package and use only qt5.base or qt5Full in your configuration.nix

Thanks so much for the reply and sorry for my late response.
The problem is that I never installed qt at all and don’t have it in my nix configuration. I dont have anything qt related at all installed. After uninstalling brave, garbage collecting and reinstalling it again. It actually started showing me the password window for kwallet, so now I’ve had to live with this annoying popup every time I open brave so I can put in the password.

I honestly think this is very badly implemented since there aren’t any configuration options for this really anywhere and its kinda obvious that I don’t want to put in a password everytime I open my browser. I never wanted encryption and seems kinda useless to me. I love brave but this is kinda stupid.

Doing brave --password-store=basic

did help but I don’t know how to remove the normal brave shortcut in rofi and replace it with the one with my custom options, since if I try to edit any .desktop file it just doesn’t let me