${LOGNAME} vs. ${USER}
Johnny Rosenberg
gurus.knugum at gmail.com
Sun Jul 12 18:36:22 UTC 2015
2015-07-12 20:28 GMT+02:00 Nils Kassube <kassube at gmx.net>:
> Johnny Rosenberg wrote:
> > One thing that changed when I switched from Ubuntu 12.04 to Ubuntu
> > 14.04 is what I already mentioned, that things like SD-cards end up
> > at ”/media/<username>/” now, the earlier location was just ”/media/”.
> > One wild guess I do is that Ubuntu uses either USER or LOGNAME
> > somewhere ”under the hood”, to determine the location of my SD card.
> > If so, which one?
>
> Skimming through the source code of the udisks2 package it looks like
> none of them is used. Instead the username is read from /etc/passwd.
>
>
Ouch, my ”wild guess” was wrong…! What a shame… :P :D
Thanks for the information!
Kind regards
Johnny Rosenberg
ジョニー・ローゼンバーグ
>
> Nils
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150712/a1d101e2/attachment.html>
More information about the ubuntu-users
mailing list