PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads menu

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
kbhasi

PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads menu

Unread post by kbhasi » 2018-02-16, 08:29

I have 2 systems that are both running Debian 9 ("stable" channel) with Trinity as the desktop environment. That is not an officially supported DE for that distro, but I installed it through a separate repository.

Anyways, it seems that on Linux, Pale Moon seems to prefer KDE applications to Trinity applications when clicking "show in folder" in the "Downloads" menu, and there's no way to override that preference.

On the first system, I have both Trinity and KDE versions of Dolphin file browser installed (the latter pulled in automatically by APT when I went to install KWin from Plasma 5 (because Trinity's Compiz support is there, but broken)). When I go to the "Downloads" menu and click "show in folder", KDE's Dolphin opens up instead of Trinity's Dolphin.

I would have been able to live with the newer version of Dolphin, had I known (back then) that I could have just installed the Ubuntu 16.10 package for Qt5ct onto my Debian 9 installation, add the necessary file to ~/.trinity/env/, then log back out and log back in, and set Qt5ct to use a theme similar to the TQt theme i already have set*.
*I still wish KDE Neon (which I use on my main laptop) had packages for the extra Qt 5 widget themes ("qt5-style-plugins" package) and QtCurve. That, along with the reported problems with KDE Plasma 5.12, means I may back up my home folder, and install Debian 9 with KDE Plasma (which, from what I remember, uses Plasma 5.8 LTS and KDE Applications 16.08.3). I know, but I'm too used to DEB-based distros.
I didn't do that for the first system (I don't have access to that system now, for reasons which would be hard for me to explain, but I would need to reinstall Debian on that system anyway), but I did just that for the second system, which I do have access to. However, as I did not need the newer KWin on that system, KDE's Dolphin didn't get pulled in, but I had KDE's Gwenview installed, and PM went and used that as the file manager for its "show in folder" function, instead of Trinity's Dolphin.

Here are all the currently set environment variables on the second system:

Code: Select all

kevin@ziziks:~$ env
GS_LIB=/home/kevin/.fonts
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
LANG=en_AU.UTF-8
DISPLAY=:0
TDE_FULL_SESSION=true
COLORTERM=
DM_CONTROL=/var/run/xdmctl
XDG_VTNR=7
SSH_AUTH_SOCK=/tmp/ssh-GCSwCDq1Y1vV/agent.5929
KONSOLE_DCOP_SESSION=DCOPRef(konsole-6637,session-2)
TDEROOTHOME=/root/.trinity
TDE_SESSION_UID=1000
XDG_SESSION_ID=c4
USER=kevin
DESKTOP_SESSION=trinity
GTK2_RC_FILES=/home/kevin/.gtkrc-2.0-kde-kde4:/home/kevin/.trinity/share/config/gtkrc-2.0
QT_QPA_PLATFORMTHEME=qt5ct
PWD=/home/kevin
HOME=/home/kevin
TDEHOME=/home/kevin/.trinity
SSH_AGENT_PID=5978
QT_ACCESSIBILITY=1
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/opt/trinity/share:/usr/local/share:/usr/share
XDG_SESSION_DESKTOP=trinity
TDEDIR=/opt/trinity
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_CLASS=greeter
KONSOLE_DCOP=DCOPRef(konsole-6637,konsole)
XCURSOR_THEME=default
XDG_CURRENT_DESKTOP=Trinity
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
SHLVL=1
XDG_SEAT=seat0
LANGUAGE=en_AU:en
GTK_RC_FILES=/etc/gtk/gtkrc:/home/kevin/.gtkrc:/home/kevin/.trinity/share/config/gtkrc
WINDOWID=83886088
LOGNAME=kevin
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
TDE_MULTIHEAD=false
XDG_RUNTIME_DIR=/run/user/1000
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
XDG_CONFIG_DIRS=/opt/trinity/etc/xdg:/etc/xdg
PATH=/usr/local/bin:/opt/trinity/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
SESSION_MANAGER=local/ziziks:@/tmp/.ICE-unix/6150,unix/ziziks:/tmp/.ICE-unix/6150
_=/usr/bin/env
I forgot to mention, this bug may be due to it only checking /usr/bin/ instead of all folders in the PATH variable.
Last edited by kbhasi on 2018-02-16, 08:30, edited 1 time in total.

kbhasi

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by kbhasi » 2018-02-16, 15:49

Update: While I wasn't able to solve the problem, I managed to narrow down the problem to it not being a bug in Pale Moon, but a bug in the GTK+ framework, as I remembered I had one other GTK application that could trigger the default file manager, that being Plank (although it's a GTK+ 3.x app, not GTK+ 2.x which is what PM uses on Unix-likes). and it also opened Gwenview instead of Dolphin.\

Edit: I was experimenting around with part of a tutorial I found, and then, PM would open PCManFM (which is a backup file manager I installed for if I were administering the system over X11 forwarding over SSH) instead of Gwenview, then when I renamed the executable back to "gwenview", that opened instead of PCManFM or Dolphin.
Last edited by kbhasi on 2018-02-16, 15:52, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35600
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by Moonchild » 2018-02-16, 18:26

Considering this isn't a bug in Pale Moon I'm moving this to the Linux support board.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

hobbledehoy899

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by hobbledehoy899 » 2018-02-16, 22:56

You might just want to do some "hacky" menu entry editing at that point.

tired_eyes

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by tired_eyes » 2018-02-19, 14:10

The problem is that GTK applications on KDE (Trinity flavor and others) for some reason does not respect "default file manager" setting, instead just picking the first "inode/directory" MIME type entry from the file associations list. For example, there is a long-standing issue with Audacious media player that have a name that starts with "a" and also has inode/directory MIME type. As a result, it is triggered in all GTK apps as "file manager".
Definitely PM has nothing to do with it, and this issue can be fixed by manually editing file associations in DE settings.
Last edited by tired_eyes on 2018-02-19, 14:11, edited 3 times in total.

User avatar
Moonraker
Board Warrior
Board Warrior
Posts: 1878
Joined: 2015-09-30, 23:02
Location: uk.

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by Moonraker » 2018-03-10, 11:08

Off-topic:
I certainly would not recommend KDE to anyone as it is a resource monster and a true fan spinner.Far better and lighter options available.
Last edited by Anonymous on 2018-03-12, 04:16, edited 1 time in total.
user of multiple puppy linuxes..upup,fossapup.scpup,xenialpup..... :thumbup:

Pale moon 29.4.1

lyceus

Re: PM for Linux seems to prefer KDE applications to Trinity applications for the "show in folder" button in Downloads m

Unread post by lyceus » 2018-03-12, 04:15

Moonraker wrote:I certainly would not recommend KDE to anyone as it is a resource monster and a true fan spinner.Far better and lighter options available.
Despite you have the right to express your opinion, this reply adds little to nothing to the topic. So I did mark it as offtopic, to remind you to use that feature from now and use the etiquette of this forum. * One time suggestion *

Locked