mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
23 lines
559 B
C++
23 lines
559 B
C++
|
#pragma once
|
||
|
|
||
|
#include "util/XDGDesktopFile.hpp"
|
||
|
|
||
|
#include <QString>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
#if defined(Q_OS_UNIX) and !defined(Q_OS_DARWIN)
|
||
|
|
||
|
std::optional<XDGDesktopFile> getDefaultBrowserDesktopFile();
|
||
|
|
||
|
/// Parses the given `execKey` and returns the resulting program name, ignoring all arguments
|
||
|
///
|
||
|
/// Parsing is done in accordance to https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html
|
||
|
///
|
||
|
/// Note: We do *NOT* support field codes
|
||
|
QString parseDesktopExecProgram(const QString &execKey);
|
||
|
|
||
|
#endif
|
||
|
|
||
|
} // namespace chatterino
|