brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.62k stars 2.29k forks source link

Installing Desktop PWAs generates .desktop files in ~/Desktop #15355

Open jeankhawand opened 3 years ago

jeankhawand commented 3 years ago

Description

Brave generates .desktop files for Desktop PWA at ~/Desktop while their actual location is at /usr/share/applications/ or ~/.local/share/applications

Steps to Reproduce

  1. Installing Desktop PWAs through this method
  2. after installation, brave generate brave-<random-string>-Default.desktop and adds it to ~/Desktop/
  3. while the default .desktop files are located at /usr/share/applications/ or ~/.local/share/applications

Actual result:

Screenshot from 2021-04-18 13-55-41

Brave version (brave://version info)

Brave 1.20.110 Chromium: 88.0.4324.192 (Official Build) (64-bit)
Revision 31b458a18f133db9203eb5a5dd6552de0716dda3-refs/branch-heads/4324_182@{#6}
OS Linux
abbasnaqdi commented 2 years ago

+1

Malix-Labs commented 3 months ago

This is Chromium related

Also, it is intended

They are generated both in ~/Desktop and /usr/share/applications/ / ~/.local/share/applications

lduktus commented 3 months ago

How did you installed Brave?

I had the same issue (snap version). Also no icon placed anywhere and the command in the .desktop file didn't worked for me, I had to overwrite the command to work properly.

This is Chromium related

Interestingly Chromium (also snap) just worked: the PWA appeared with a proper icon and no .desktop file on my ~/Desktop.

Last time I tried the flatpak version it worked, but also not out of the box, you have to give access to ~/.local/share/icons and ~/.local/share/applications, see: 23005

For the flatpak issue: It would be nice to just have access to this paths by default.

For the snap issue same thing: Chromium just places the files in these standard directories.