macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.5k stars 681 forks source link

Getting warning 'You are opening the application “MacVim” for the first time' every time opening MacVim #1240

Closed Naitreey closed 2 years ago

Naitreey commented 2 years ago

Steps to reproduce

I'm getting the warning dialogue every time opening a text file in Finder into MacVim app: CleanShot 2022-04-11 at 17 23 52

Steps to reproduce:

  1. Open Finder, find a text file.
  2. Right click it and open it with MacVim.
  3. macOS warning dialogue shows up.
  4. Click "Open" the file will open in MacVim.
  5. Quit MacVim completely with cmd+q.
  6. Repeat, the warning dialogue shows up again.

But I won't get the warning if I open the file in terminal with gvim command.

Expected behaviour

The warning dialogue should show up only for the first time launching MacVim, not every time.

Version of Vim and architecture

8.2.3455, GUI, x86_64

Environment

Monterey, x86_64, iTerm2, xterm-256color, bash 5.1.16(1)-release

How MacVim was installed

Homebrew

Logs and stack traces

No response

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration

Issue has been tested with no configuration

Other conditions

sigzero commented 2 years ago

This is not a MacVim issue. That dialog comes from MacOS. You probably need to reset launch services.

Read answer #3 here:

https://apple.stackexchange.com/questions/30177/excessive-opening-application-for-the-first-time-dialogs

This issue should be closed.

ychin commented 2 years ago

Closing issue. As the above comment said, I don't think MacVim is doing anything weird here. Can reopen if that doesn't fix the issue.