You are not logged in.

#1 2024-11-17 22:57:36

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

[SOLVED] Some programs can't open file manager in TDE

On my Arch Linux + Trinity Desktop Environment setup, programs such as Firefox and Falkon can open the file manager, but other programs such as Google Chrome, Epiphany and Discord can't open it. I have installed xdg-desktop-portal, xdg-desktop-portal-gtk and xdg-desktop-portal-gnome but they doesn't seem to be enabled at startup.

Last edited by miguel04685 (2024-11-18 15:45:03)

Offline

#2 2024-11-17 23:24:27

seth
Member
Registered: 2012-09-03
Posts: 59,038

Re: [SOLVED] Some programs can't open file manager in TDE

Get rid of xdg-desktop-portal-gnome  - you mean the file open/save dialogs or the "open file in filemanager" feature in some browsers?

Offline

#3 2024-11-17 23:36:15

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

File open/save dialogs. For example, when downloading a file on Google Chrome

Last edited by miguel04685 (2024-11-17 23:37:20)

Offline

#4 2024-11-17 23:38:06

seth
Member
Registered: 2012-09-03
Posts: 59,038

Re: [SOLVED] Some programs can't open file manager in TDE

seth wrote:

Get rid of xdg-desktop-portal-gnome

Then check the journal for xdg-desktop-portal related errors (crashes etc)

Offline

#5 2024-11-17 23:43:25

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

xdg-desktop-portal is enabled but xdg-desktop-portal-gtk isnt

Last edited by miguel04685 (2024-11-18 00:04:28)

Offline

#6 2024-11-17 23:46:29

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

Maybe I need to configure the system to set xdg-desktop-portal-gtk as default?

Last edited by miguel04685 (2024-11-17 23:46:39)

Offline

#7 2024-11-18 00:03:10

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

Btw this is what I get: http://0x0.st/XdQB.txt

After removing xdg-desktop-portal-gnome: http://0x0.st/XdQ_.txt

Last edited by miguel04685 (2024-11-18 00:17:00)

Offline

#8 2024-11-18 08:04:47

seth
Member
Registered: 2012-09-03
Posts: 59,038

Re: [SOLVED] Some programs can't open file manager in TDE

nov 17 21:15:22 miguelarch xdg-desktop-por[1274]: Choosing gtk.portal for org.freedesktop.impl.portal.Lockdown as a last-resort fallback
nov 17 21:15:22 miguelarch xdg-desktop-por[1274]: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file
nov 17 21:15:22 miguelarch systemd[829]: Starting Portal service (GTK/GNOME implementation)...
nov 17 21:15:22 miguelarch xdg-desktop-por[1297]: cannot open display: 
nov 17 21:15:22 miguelarch systemd[829]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
nov 17 21:15:22 miguelarch systemd[829]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
nov 17 21:15:22 miguelarch systemd[829]: Failed to start Portal service (GTK/GNOME implementation).
nov 17 21:13:54 miguelarch tdm[505]: pam_unix(tde:session): session opened for user miguel(uid=1000) by miguel(uid=0)

What's the output of

loginctl session-status

If you're using startx/xinit, see the last link below and the second note on what to at least include in your xinitrc. In doubt post it.

Offline

#9 2024-11-18 14:38:34

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

Output of loginctl session-status:

1 - miguel (1000)
  Since: Mon 2024-11-18 11:26:29 -03; 10min ago
  State: active
 Leader: 501 (:0)
   Seat: seat0; vc7
Display: :0
 Remote: no
Service: tde
   Type: x11
  Class: greeter
   Idle: no
   Unit: session-1.scope
         ├─ 501 /opt/trinity/bin/tdm
         ├─ 823 /bin/sh /opt/trinity/bin/starttde
         ├─ 920 /usr/bin/ssh-agent -s
         ├─ 941 "dcopserver [tdeinit] --nosid --suicide"
         ├─ 945 "kded [tdeinit] --new-startup"
         ├─ 963 start_tdeinit --new-startup +kcminit_startup
         ├─ 964 "[tdeinit] tdeinit Running..."
         ├─ 972 "tdelauncher [tdeinit] --new-startup"
         ├─ 980 /opt/trinity/bin/tdeinit_phase1
         ├─ 983 kwrapper ksmserver --windowmanager twin
         ├─ 985 "ksmserver [tdeinit] --windowmanager twin"
         ├─ 986 "twin [tdeinit]"
         ├─ 991 "kicker [tdeinit]"
         ├─ 996 /opt/trinity/bin/kdesktop
         ├─1000 /opt/trinity/bin/kdesktop_lock --internal 996
         ├─1011 "kaccess [tdeinit]"
         ├─1012 /opt/trinity/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage -c drko>
         ├─1037 python3 /usr/bin/redshift-gtk
         ├─1039 "knotify [tdeinit]"
         ├─1042 xcompmgr -c -C -f -F
         ├─1046 /usr/lib/geoclue-2.0/demos/agent
         ├─1074 "kmix [tdeinit] -caption KMix -icon kmix -miniicon kmix"
         ├─1075 kooldock
         ├─1086 polkit-agent-tde
         ├─1090 "tdepowersave [tdeinit]"
         ├─1093 tderandrtray
         ├─1096 "klipper [tdeinit]"
         ├─1098 tdehwdevicetray
         ├─1105 "tdenetworkmanager [tdeinit]"
         ├─1136 /usr/bin/redshift -v
         ├─1222 /usr/lib/firefox/firefox
         ├─1270 /usr/lib/firefox/firefox -contentproc -parentBuildID 202411122256>
         ├─1312 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 357>
         ├─1360 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 422>
         ├─1413 /usr/lib/firefox/firefox -contentproc -parentBuildID 202411122256>
         ├─1423 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 378>
         ├─1427 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 378>
         ├─1431 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 378>
         ├─1492 /usr/lib/firefox/firefox -contentproc -isForBrowser -prefsLen 379>
         ├─1566 "konsole [tdeinit]"
         ├─1569 /bin/bash
         ├─1571 loginctl session-status
         └─1572 less

nov 18 11:26:30 miguelarch systemd[1]: Started Session 1 of User miguel.
lines 35-57/57 (END)

Last edited by miguel04685 (2024-11-18 14:42:05)

Offline

#10 2024-11-18 15:10:36

miguel04685
Member
From: Rio de Janeiro, Brasil
Registered: 2024-09-24
Posts: 54

Re: [SOLVED] Some programs can't open file manager in TDE

I managed to solve this problem by replacing TDM with LightDM. TDM is very buggy because autologin doesn't work and it might not startup services necessary for programs open the file manager. The only trade-off is that when turning off the PC by the TDE method, it redirects you to LightDM instead of shutting down the PC. You can solve this by configuring KShutDown to use /sbin/poweroff & /sbin/reboot and using KShutDown to shutdown the system.

Last edited by miguel04685 (2024-11-18 15:12:18)

Offline

#11 2024-11-18 15:41:16

seth
Member
Registered: 2012-09-03
Posts: 59,038

Re: [SOLVED] Some programs can't open file manager in TDE

The problem is likely that TDM doesn't import the session environment, but https://wiki.archlinux.org/title/Console_TDM (?) seems to hinge on your xinitrc.
If that's another TDM, you'll have to look up it's session scripts and make sure /etc/X11/xinit/xinitrc.d/50-systemd-user.sh gets invoked.

Edit: Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2024-11-18 15:41:27)

Offline

Board footer

Powered by FluxBB