Broken symlinks with snap installed packages in KDE Plasma - linux

The example below occurs with the Brave snap, but I think it also happens with all the other snaps.
Steps to reproduce
Install Brave snap via Discover
Open Brave and add pin to Task manager
Update Brave (When available)
Observed Result
Clicking on the pinned icon throws this:
Plasma workspace error:
The file or folder /snap/brave/**158**/opt/brave.com/brave/brave does not exist.
i.e., pinned icon doesn't work (app launching still works via app launcher)
screenshot
Expected Result
App should open.
Temporary Workaround
Manually changing the symlink from "/snap/brave/158/opt/brave.com/brave/brave " to "/snap/brave/current/opt/brave.com/brave/brave" works BUT updating the app recreates the problem : app doesn't open and
Plasma workspace (updated) error :
The file or folder /snap/brave/**160**/opt/brave.com/brave/brave does not exist.
Software/OS version
Operating System Distribution
KDE neon 5.24
KDE Plasma Version
5.24.5
KDE Frameworks Version
5.93.0
Qt Version
5.15.3
Kernel Version
5.13.0-41-generic (64-bit)
Graphics Platform
X11
Processors
4 × Intel® Core™ m3-6Y30 CPU # 0.90GHz
Memory
3.6 GiB of RAM
Graphics Processor
Mesa Intel® HD Graphics 515
Additional information
I have noticed the version number in the path name (here:160) differs from the the new version numbers, after the update.
My current folders are :
/snap/brave/162
/snap/brave/161
/snap/brave/current

Related

Android Studio Dolphin (2021.3.1.17) won't start, no errors, on Mac (Intel, Monterey)

I was previously running an old 4.0.0 install. Now replacing with the latest stable Android Studio Dolphin (seems to be 2021.3.1.17), on a 2015 Macbook Pro running latest Monterey, and it will not start. Nothing happens at all. Trying to run from Terminal ("open -a /Applications/Android\ Studio.app") returns no errors, no output. On first run, MacOS does its verification process, and after confirming I want to run a downloaded file, nothing.
Tried:
I've tried removing all traces in ~/Library/Preferences/..., ~/Library/Caches/..., ~/Library/Application Support/..., ~/Library/Logs/... of previous versions. And removed and installed older stable releases, all the way back to 4.2.2 when it worked. But 4.2.2 is too old for the latest codebase.
Is this hardware related... is there a system requirement that might affect this? (info on the Mac is below) I can't see anything in requirements that should case this. Does anyone know of something else I can try, or check?
This is not my screen capture, but demonstrates the same problem: https://imgur.com/a/HS9ufow
About the Macbook Pro:
It's a 2015 Macbook Pro, so Intel based, and I am definitely downloading the "Mac with Intel chip" version. It's "2.7 GHz Dual-Core Intel Core i5" and 8GB of RAM. I know this isn't new hardware, but I can't see a system requirement that should be a problem.
Additional:
After first having this problem, already Monterey, just one recent update behind, I installed the latest Monterey patch. Following the OS reboot and trying Android Studio again, the splash screen actually did appear, and offered to use the old version's prefs, which I did, but the IDE never opened. Now, even after reboots, and several attempts at installing different versions, nothing.

URIs to log in on VS Code don't work on Vivaldi

I'm on Manjaro KDE, using Vivaldi browser, and VS Code from Snap.
To log in to things like Sync Settings on VS Code, it opens your browser to a page where you can log in to GitHub, and it then tries to open a magnetic URI with VS Code, containing the generated tokens.
Since I moved to Manjaro, this never worked for me, but before, prior to trying to open the magnetic URI, the web page showed you the URI and allowed you to copy-paste it manually back into VS Code, and that's what I used to do, and it worked fine.
Now, that option seems to be gone, and it logged me out of basically everything on VS Code.
What happens is the following:
Go to "Sign in to Sync Settings"
"Sign in with GitHub"
Page opens on browser, prompting to "Open xdg-open"
Another instance of VS Code appears, "Visual Studio Code - URL Handler"
This remains loading for a while
And then it says "Cancelled"
The same happens whenever I try to log in on the other options, Copilot and Live Share.
System info:
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.15.28-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × AMD Ryzen 3 2200G with Radeon Vega Graphics
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 970/PCIe/SSE2
VS Code info:
Version: 1.66.1
Commit: 8dfae7a5cd50421d10cd99cb873990460525a898
Date: 2022-04-06T14:51:26.173Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Linux x64 5.15.28-1-MANJARO snap
Edit: It seems that using Chromium as a default browser worked, so this issue is likely related to Vivaldi somehow.

Nvidia Linux graphics debugger Qt platform plugin "xcb"

I have been trying to debug my OpenGL graphics application using Nvidia Linux graphics debugger, the debugger application starts and installs the debugger to the device (graphics) correctly, but when trying to Launch the application to debug it shows this message
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "". Available platform plugins are:
eglfs, linuxfb, minimal, minimalegl, offscreen, xcb. Reinstalling the
application may fix this problem. Aborted (core dump)
The application starts fine as standalone but starting with Linux GD.
I have seen lot of posts relating to xcb but could not find any answer relating to starting application using Nvidia linux graphics debugger
nvidia drivers I am using 378
os-ubuntu 16.04
Nvidia liniux graphics debugger 2.0
Qt opengl context
I had the same issue, and solved it by changing the LD_LIBRARY_PATH to the Qt installation path (on the launch environment options)
LD_LIBRARY_PATH=<some_dir>/Qt/5.7/gcc_64/lib

Android Studio HAXM update issues

Android Studio 2.1.3
I can't seem to update HAXM. Every time I open the AVD, it gives me the following error message:
Virtual machine acceleration driver out-of-date
It then gives me a button to "Reinstall Haxm". Clicking that leads to an installation screen where I can choose the RAM allocation, where I hit Next and it starts installing. I then see it start installing and an extracting dialog flash up and disappear immediately:
It then finishes and says it was updated successfully, but then I hit Finish and it wants me to update again.
I've ensured Hyper-V isn't enabled and that virtualization is enabled in the BIOS. I've also tried installing it manually, and that looks like it all works successfully. And yet, no change in behavior by Android Studio. I have also seen this solution and tried it, with no success.
I can run the ARM EABI v7a emulators; just not the x86 ones. The ARM ones are so slow they're almost unusable, so I'd really like to find a way to fix this!
This machine does have VMWare vSphere installed on it, which is used on a regular basis. Could that be why this is happening?
First a warning. If you have a really old version of HAXM installed, follow their instructions to uninstall the old version before installing the new one.
Before installing latest HAXM, the previous versions from 1.1.4 and
below must be uninstalled using:
sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
The Intel HAXM installation instructions are confusing and outdated, but this part is correct:
once you have installed the package, the status will appear as
‘Installed’, which is misleading as this is not the case. The SDK
only copies the Intel HAXM executable on your machine, and it is up to
you to install the executable.
I'm using Android Studio 3.0.1 on a Mac (10.11 El Capitan) and have not seem a "Reinstall HAXM" button like you described, but when an emulator is launched I do see this in the Event Log:
Emulator: WARNING: HAXM 6.0.5 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac.
In SDK Manager -> SDK Tools it says the Intel X86 Emulator Accelerator (HAXM installer) is version 6.2.1. I have updated it via the SDK Manager from previous versions several times in the past but didn't realize the update was not complete.
Solution on Windows: Find the IntelHAXM.exe file and run it.
It might be at C:\Program Files\Android\android-sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe
Solution on Mac: Find the .dmg file, open it, and double-click on the .mpkg file inside to start the actual installation. It will say the software is already installed. Press OK -> Continue -> Install to "re-install" it (meaning actually to install the newer version).
In my case the .dmg file was found at Users/{username}/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_6.2.1.dmg

Eclipse Kepler crashes when I open Marketplace

I am trying to use Eclipse 4.3 "Kepler" on openSUSE 13.1 KDE 4.11
Every time I go to open the marketplace under "Help>Marketplace", Eclipse crashes.
When I ran eclipse from CLI here is the output:
No bp log location saved, using default.
[000:000] Cpu: 6.42.7, x4, 2200Mhz, 11952MB
[000:000] Computer model: Not available
[000:000] Browser XEmbed support present: 1
[000:000] Browser toolkit is Gtk2.
[000:000] Using Gtk2 toolkit
No bp log location saved, using default.
[000:000] Cpu: 6.42.7, x4, 2200Mhz, 11952MB
[000:000] Computer model: Not available
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (suse-24.13.5-x86_64)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
In my .log file I see a few errors, but not sure whats conflicting.
Here is my .log file: http://pastebin.com/qpjRnXLM
Any ideas?
Look at solution on this answer
Uninstall google-talkplugin. This work for me.
I run KDE as well and I've added this to eclipse.ini
after vmargs :
-Dorg.eclipse.swt.browser.DefaultType=mozilla
And it solved my problem

Resources