Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim_configurable starts XQuartz on startup on darwin #45883

Open
ejpcmac opened this issue Aug 31, 2018 · 9 comments
Open

vim_configurable starts XQuartz on startup on darwin #45883

ejpcmac opened this issue Aug 31, 2018 · 9 comments
Labels
6.topic: darwin Running or building packages on Darwin 6.topic: vim

Comments

@ejpcmac
Copy link
Contributor

ejpcmac commented Aug 31, 2018

Issue description

Since the last nixpkgs-unstable update, XQuartz is started when running vim in a terminal. This slows down vim startup a lot if XQuartz is not already started. vim should start without GUI.

Steps to reproduce

  1. Install vim on macOS via Nix
  2. Start vim from a terminal

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 15.6.0, macOS 10.11.6`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(***): `"darwin"`
 - channels(root): `"nixpkgs-18.09pre151001.1e1221c1c15"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Temporary workaround

One can alias vim to vim -X to avoid starting XQuartz.

@LnL7 LnL7 added 6.topic: darwin Running or building packages on Darwin 6.topic: vim labels Sep 1, 2018
@LnL7
Copy link
Member

LnL7 commented Sep 1, 2018

Hmm, I added X11 support to vim_configurable for +clientserver. But I'd expect only gvim to start XQuartz.

@ejpcmac
Copy link
Contributor Author

ejpcmac commented Sep 2, 2018

@LnL7 gvim is not even installed on my system. I can however do vim -g to get the GUI and it works as expected. XQuartz should only be started when needed.

@LnL7
Copy link
Member

LnL7 commented Sep 2, 2018

Yeah but I don't know what's causing that, vim_configurable doesn't add any arguments except for -u vimrc

@elohmeier
Copy link
Contributor

Is there already a workaround to this problem?

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@charlie-collard
Copy link

This is still happening for me

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 30, 2021
@stale
Copy link

stale bot commented Apr 28, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 28, 2022
@starcraft66
Copy link
Member

starcraft66 commented May 29, 2022

Just started experiencing this out of the blue for inexplicable reasons. Starting vim always starts XQuartz and vim -g does indeed show a GUI.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 29, 2022
@ssl19
Copy link

ssl19 commented Apr 6, 2023

   guiSupport = "no";
   darwinSupport = true;

With these two overrides, this issue could be solved on macOS .

REF: https://hardselius.github.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 6.topic: vim
Projects
None yet
Development

No branches or pull requests

6 participants