This commit is contained in:
Martin Rotter 2022-03-08 07:39:55 +01:00
parent 82df4d619a
commit e0c3f6f19b
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@
<url type="donation">https://github.com/sponsors/martinrotter</url> <url type="donation">https://github.com/sponsors/martinrotter</url>
<content_rating type="oars-1.1" /> <content_rating type="oars-1.1" />
<releases> <releases>
<release version="4.1.2" date="2022-03-07"/> <release version="4.1.2" date="2022-03-08"/>
</releases> </releases>
<content_rating type="oars-1.0"> <content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute> <content_attribute id="violence-cartoon">none</content_attribute>

View file

@ -172,10 +172,10 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
} }
QString SystemFactory::loggedInUser() const { QString SystemFactory::loggedInUser() const {
QString name = qgetenv("USER"); QString name = qEnvironmentVariable("USER");
if (name.isEmpty()) { if (name.isEmpty()) {
name = qgetenv("USERNAME"); name = qEnvironmentVariable("USERNAME");
} }
if (name.isEmpty()) { if (name.isEmpty()) {