D12795: Re-allow running Dolphin as the root user (but still not using sudo)

Nathaniel Graham noreply at phabricator.kde.org
Thu May 10 05:06:09 BST 2018


ngraham added a comment.


  Right: if our uid is zero, but `$SUDO_USER` is set to something, then we're actually a non-root user using sudo, not the root user itself. We have to check `$SUDO_USER` and not `$USER` because `$USER` is set to "root" for the sudo use case.
  
  Does it not work for you? It works for me. Though if there's a better way, I'm all ears. As I'm sure you've noticed by know, I'm a //terrible// programmer, though I'm trying to improve all the time!

REPOSITORY
  R318 Dolphin

REVISION DETAIL
  https://phabricator.kde.org/D12795

To: ngraham
Cc: elvisangelaccio, mmustac, Fuchs, markg, graesslin, nicolasfella, zzag, kfm-devel, emmanuelp, spoorun, navarromorales, isidorov, firef, andrebarros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180510/4b5837a4/attachment.htm>


More information about the kfm-devel mailing list