Merge pull request #532 from amnezia-vpn/bugfix/issue485

Fix autostart for Linux Desktop
This commit is contained in:
pokamest 2024-01-24 11:32:37 -08:00 committed by GitHub
commit 2edac24945
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,8 +124,13 @@ void Autostart::setAutostart(bool autostart) {
if (file.open(QIODevice::ReadWrite)) { if (file.open(QIODevice::ReadWrite)) {
QTextStream stream(&file); QTextStream stream(&file);
stream << "[Desktop Entry]" << Qt::endl; stream << "[Desktop Entry]" << Qt::endl;
stream << "Exec=" << appPath() << Qt::endl; stream << "Exec=AmneziaVPN" << Qt::endl;
stream << "Type=Application" << Qt::endl; stream << "Type=Application" << Qt::endl;
stream << "Name=AmneziaVPN" << Qt::endl;
stream << "Comment=Client of your self-hosted VPN" << Qt::endl;
stream << "Icon=/usr/share/pixmaps/AmneziaVPN.png" << Qt::endl;
stream << "Categories=Network;Qt;Security;" << Qt::endl;
stream << "Terminal=false" << Qt::endl;
} }
} }
} }