ui/cocoa: Do not rely on the first argument
commita0f973f931680ae8bd847054aca7f658abb9c18f
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Tue, 9 Mar 2021 12:22:26 +0000 (9 21:22 +0900)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 11 Mar 2021 09:06:44 +0000 (11 10:06 +0100)
tree312cef14d42ccd689ba4f7cb9dea28c56e128974
parente31746ecf8dd2f25f687c94ac14016a3ba5debfc
ui/cocoa: Do not rely on the first argument

The first argument of the executable was used to get its path, but it is
not reliable because the executer can specify any arbitrary string. Use the
interfaces provided by QEMU and the platform to get those paths.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210309122226.23117-2-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/cocoa.m