mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 11:19:18 +01:00
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.
|
||||
// This must go before QApplication initialisation.
|
||||
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
|
||||
|
||||
QCoreApplication::setApplicationName("Clementine");
|
||||
|
Loading…
Reference in New Issue
Block a user