It's been a long time ago when I coded this for my private use,
and its been much C++ code (b/c I needed also some other features
like auto-mounting/unmounting an encrypted filesystem image etc etc).

I just looked in the source code and one needs to do
these steps as user to grant desktop access to an other user/users:

xhost +SI:localuser:$UN
...
xhost -SI:localuser:$UN

See manpage of xhost for details.
And "xhost" as user to show the granted users.

But first better do a web research for starting a program under a different user name in Linux. Maybe nowadays such a solution already exists out there.
Old Windows XP had "runas.exe", and that had inspired me to have same under 
Linux.
There was none for Linux when I needed this feature many years ago,
so I hacked a Q&D one for my own use. It's a messy code, not ready
for any release nor support due to lack of time.

And: I'm running X11, not wayland.


D.T. wrote on 12/10/23 12:21:
But, as said, pcmanfm does not work anymore when started under a different
username but the desktop username. This is of course bad, even a bug, IMO. I
hope it gets fixed.

Nothing against hoping per se, but right now it's a bug only according to you.
If you want to fix your problem you should start some serious troubleshooting.
Maybe you will then find out there's a solution. If not you can still use your
troubleshooting insights
to properly file a bug.

If you walk us through the process of how you added the new user and how you
start pcmanfm
we can help with the troubleshooting.

I just tried with some unused user I have:

|sudo -u unused_user DISPLAY=:0 pcmanfm Authorization required, but no
authorization protocol specified Cannot open display: |

Are you seeing the same?

Also tell us if you're running X11 or wayland.





_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list




_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to