Incorrect .desktop file created when installing via snap


I installed Brave on my Solus install via snap (sudo snap install brave --beta) and there was a “placeholder” icon rather than the lion. The .desktop file installed in /snap/brave/18/usr/share/applications referenced the “brave.png” icon in /usr/share/pixmaps; however, snap doesn’t install to that directory. Rather, snap installs the icon in /snap/brave/18/usr/share/pixmaps.

Further, the .desktop file names the app “Brave,” but xprop tells me the WM_Class name is “brave” (lower- versus upper-case).

When I attempt to correct these errors, the files are “unwritable” even with su or sudo, which I believe is a function of snap; if I cp the .desktop file to another dir and edit it to be correct, I am left with multiple “Brave” icons in my panel menu. Ew.


My system (from inxi):
System: Host: zenbook Kernel: 4.15.11-61.current x86_64 bits: 64 Desktop: Budgie 10.4 Distro: Solus 3.999 Machine: Device: laptop System: ASUSTeK product: UX330UAR v: 1.0 serial: N/A Mobo: ASUSTeK model: UX330UAR v: 1.0 serial: N/A UEFI: American Megatrends v: UX330UAR.300 date: 08/03/2017 Battery BAT0: charge: 45.1 Wh 79.0% condition: 57.1/57.1 Wh (100%) CPU: Quad core Intel Core i5-8250U (-HT-MCP-) cache: 6144 KB clock speeds: max: 3400 MHz 1: 1796 MHz 2: 2390 MHz 3: 2222 MHz 4: 2202 MHz 5: 2236 MHz 6: 2344 MHz 7: 2349 MHz 8: 1831 MHz Graphics: Card: Intel Device 5917 Display Server: x11 (X.Org 1.19.6 ) drivers: modesetting (unloaded: fbdev,vesa) Resolution: 1920x1080@60.05hz OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) version: 4.5 Mesa 17.3.6

closed #2

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