fix: use correct userData path when unbundled (#30113)
This commit is contained in:
parent
4db7221c7d
commit
bec47f54f4
7 changed files with 32 additions and 36 deletions
|
@ -33,7 +33,7 @@ namespace electron {
|
|||
|
||||
std::string GetApplicationName() {
|
||||
// attempt #1: the string set in app.setName()
|
||||
std::string ret = GetOverriddenApplicationName();
|
||||
std::string ret = OverriddenApplicationName();
|
||||
|
||||
// attempt #2: the 'Name' entry from .desktop file's [Desktop] section
|
||||
if (ret.empty()) {
|
||||
|
@ -64,7 +64,7 @@ std::string GetApplicationVersion() {
|
|||
|
||||
// try to use the string set in app.setVersion()
|
||||
if (ret.empty())
|
||||
ret = GetOverriddenApplicationVersion();
|
||||
ret = OverriddenApplicationVersion();
|
||||
|
||||
// no known version number; return some safe fallback
|
||||
if (ret.empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue