mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 14:50:21 +03:00
dont confuse lock files between different users
This commit is contained in:
parent
96b1beee18
commit
9aa37e8e23
@ -89,7 +89,12 @@ int main(int argc, char **argv)
|
||||
|
||||
parser.process(app);
|
||||
|
||||
QLockFile lockFile {QDir::tempPath() + "/latte-dock.lock"};
|
||||
QString username = qgetenv("USER");
|
||||
|
||||
if (username.isEmpty())
|
||||
username = qgetenv("USERNAME");
|
||||
|
||||
QLockFile lockFile {QDir::tempPath() + "/latte-dock." + username + ".lock"};
|
||||
|
||||
int timeout {100};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user