Hack out silly mac command line when Clementine is opened via "open" or GUI.
This commit is contained in:
parent
aa2d69f1bf
commit
bcc84911b8
@ -85,6 +85,14 @@ int main(int argc, char *argv[]) {
|
|||||||
// Do Mac specific startup to get media keys working.
|
// Do Mac specific startup to get media keys working.
|
||||||
// This must go before QApplication initialisation.
|
// This must go before QApplication initialisation.
|
||||||
mac::MacMain();
|
mac::MacMain();
|
||||||
|
|
||||||
|
// Strip mac command line option.
|
||||||
|
for (int i = 0; i < argc; ++i) {
|
||||||
|
QString arg(argv[i]);
|
||||||
|
if (arg.startsWith("-psn")) {
|
||||||
|
argv[i][0] = '\0';
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QCoreApplication::setApplicationName("Clementine");
|
QCoreApplication::setApplicationName("Clementine");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user