System Tray Removable Media applet opens wrong thing

Problem:

On my Gateway Laptop (LXQT,Openbox) The System tray icon for Removable Media When I click on it Instead of Launching Thunar it loads up Kitty Terminal instead. On my Daily The click does open up my Filemanger (Thunar) I have looked at the files in .config/lxqt and they are all the *same on both machines. I have also checked the panel.conf file in /etc/xdg/lxqt and see no exectuable commands for the sections in each of the files I have searched. Does anyone know how I can get the tray Icon when clicked to open Thunar instead of Kitty?

*=I did have to add this to get automount to work on the Gateway thinking this would solve my issue however it doesn’t completely solve it just the automount part.

.config/lxqt/panel.conf

[mount]
alignment=Right
type=mount
openCommand=thunar %u

It does automount however the openCommand doesn’t seem to be working for the “Removable Media” applet in the system tray.

I don’t know how old a problem this is as I just discovered it. I’m assuming its been that way since setup.

Note Above openCommand it doesn’t matter the capitalization of $u neither work

Did you check your xdg-mime defaults?

xdg-mime query default inode/directory

No didn’t even think about mimes. I’ll get back

Update:
So I checked the association and changed it to Thunar logged out but it still opens in kitty so I rebooted however same behavior. :man_shrugging:

Can you run and show the output.

grep -A5 "type=mount" ~/.config/lxqt/panel.conf

I had to add it to get automount to work however it just still opens in kitty

Can you please post the full output. That will tell me about the mount.

I suspect the openCommand needs to be inside the [Plugin-X] block that has type=mount, not in a separate [mount] section. The full output will confirm it.

None of the panel.conf files either in .config/lxqt or /etc/xdg/lxqt have a section named [Plugin-X]

[General]
__userfile__=true

[fancymenu]
favorites\1\desktopFile=/usr/share/applications/org.xfce.Catfish.desktop
favorites\2\desktopFile=/usr/share/applications/org.gnome.DiskUtility.desktop
favorites\3\desktopFile=/usr/share/applications/org.moson.pacseek.desktop
favorites\4\desktopFile=/usr/share/applications/geany.desktop
favorites\5\desktopFile=/usr/share/applications/org.pulseaudio.pavucontrol.desktop
favorites\6\desktopFile=/usr/share/applications/hardinfo2.desktop
favorites\size=6
icon=/usr/share/lxqt/graphics/helix_white_shadow.png
ownIcon=true

[mount]
alignment=Right
type=mount
openCommand=thunar %u

[panel1]
alignment=-1
animation-duration=0
background-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
background-image=
desktop=0
font-color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0)
hidable=false
hide-on-overlap=false
iconSize=32
lineCount=1
lockPanel=false
opacity=100
panelSize=32
plugins=fancymenu, quicklaunch, taskbar, statusnotifier, tray, mount, volume, showdesktop
position=Bottom
reserve-space=true
show-delay=0
visible-margin=true
width=100
width-percent=true

[quicklaunch]
alignment=Left
apps\1\desktop=/usr/share/applications/Alacritty.desktop
apps\2\desktop=/usr/share/applications/thunar.desktop
apps\size=2
type=quicklaunch

[taskbar]
alignment=Left

[tray]
alignment=Right

[volume]
alignment=Right

I added the Plugin-X but it did nothing

Hummm the file looks good.

The mime types was my first guess.
I am out of ideas for now.

Yeah that is where I’m at. Good call on the mime-type though.

Ok so I checked the mime-type again after going to A.I and it has reverted back to kitty so I changed it again and now it seems to be working as expected. Not sure why the first time it didn’t keep the setting.