1
0
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:
Michail Vourlakos 2017-12-25 21:07:07 +02:00
parent 96b1beee18
commit 9aa37e8e23

View File

@ -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};