Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
f17aade9
Commit
f17aade9
authored
Feb 03, 2022
by
Julius Künzel
Browse files
[Packaging Type] Try to detect snap automatically
parent
4e8f3317
Pipeline
#132797
passed with stage
in 12 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main.cpp
View file @
f17aade9
...
...
@@ -133,6 +133,8 @@ int main(int argc, char *argv[])
QString
appPath
=
qApp
->
applicationDirPath
();
if
(
appPath
.
contains
(
QStringLiteral
(
"/tmp/.mount_"
)))
{
packageType
=
QStringLiteral
(
"appimage"
);
}
if
(
appPath
.
contains
(
QStringLiteral
(
"/snap"
)))
{
packageType
=
QStringLiteral
(
"snap"
);
}
else
{
qDebug
()
<<
"Could not detect package type, probably default? App dir is"
<<
qApp
->
applicationDirPath
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment