Linux: Segmentation fault on left-click menu (Settings/Open)
1 **Describe the bug**
2 The application crashes with a "segmentation fault" when left-clicking the tray icon and selecting "Settings" or "Open".
3
4 **To Reproduce**
5 Steps to reproduce the behavior:
6 1. Run the `./librepods` executable on Linux.
7 2. Left-click on the tray icon.
8 3. Click on "Settings" or "Open".
9 4. The application crashes.
10
11 Expected behavior
12 The settings window or the main application window should open without crashing.
13
14 Desktop:
15 - OS: Linux Mint
16 - Error: violación de segmento ('core') generado
17
18 Additional context
19 The right-click menu and battery level on hover work correctly. The crash only occurs with the left-click menu options.
Can confirm it is also a problem on Arch Linux on Hyprland but not Gnome as the tray app works on waybar with the exception of the Open and Settings options, to be clear the app gui doesn't even show up on Hyprland. The problem is that on my desktop envirorment it works without problems and the program works flawlesly both in the tray and in the gui, i'm digging deeper to check what causes the problem.
Updating the problem regarding Hyprland, apparently it has to do with the env variable that overrides the QT style in the main config file, i found that by commentig out the env variable and rebooting the program works perfectly! Though something doesn't add up considering that on my desktop it works no matter what, i'm trying to understand more on what's causing it specifically to fix it but in the mean time the solution for me was to comment out the override of the env kvantum variable, if anyone has any idea or suggestion i'm open!
@JuverDev I'd recommend using the new rewrite (#241), it's mostly done and ready to be released. Feel free to test and report issues over there. I am unable to maintain/fix issues on the qt-based app, sorry!