MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / escapeExecPercent

Function escapeExecPercent

app/src/Misc/ShortcutGenerator_Linux.cpp:62–67  ·  view source on GitHub ↗

* @brief Doubles literal `%` so the launcher does not treat them as field codes. */

Source from the content-addressed store, hash-verified

60 * @brief Doubles literal `%` so the launcher does not treat them as field codes.
61 */
62static QString escapeExecPercent(const QString& value)
63{
64 QString out = value;
65 out.replace(QLatin1Char('%'), QStringLiteral("%%"));
66 return out;
67}
68
69/**
70 * @brief Writes a freedesktop.org Desktop Entry that launches Serial Studio with args.

Callers 1

writeLinuxDesktopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected