- Thread Starter
- #176
Crivens
Thanks for input.
I do not have /tmp/Xrootenv file on my machine, what generates it?
As for checking the user which runs X11, this seems to be able to check who started the X11 server:
Thanks for input.
I have two things I would like to share/suggest.
One thing that got me was the hard coded user name in the config file. I had to set up a labtop (no spelling mistake, a laptop for lab work) which is used by more than one user. Since each user has his own preferences, there can not be one standard user for that machine. But now this static configuration line does not work. So I replaced that one with this line:
This is giving me the currently runnig X user. This is most likely not elegant, but it works well for now. Maybe this can be a suggestion for improvements. Also, this only works with X running, but if you are running in console mode, you may also know how to use the rectrangular assortment of rectangular things in front of you to spell the magic invocation needed to mount a file system.Code:USER=`ls -l /tmp/Xrootenv|cut -w -f 3`
I do not have /tmp/Xrootenv file on my machine, what generates it?
As for checking the user which runs X11, this seems to be able to check who started the X11 server:
Code:
% pgrep X | tail -1
1180
% ps -o ppid -p 1180 | tail -1
1179
% ps -o user -p 1179 | tail -1
vermaden
Any proposition how to find out which key to use for which media?The second point is that I have tried to use PEFS with removable media. It would be a good add-on if the automounter would, after mounting, check for a hint on the device and then use the correct key file to mount the content with PEFS, in some sensible way.