2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

XQuartzが起動しない→解決

Posted at

はじめに

XQuartzはMac OS X上で動作するX Window Systemです。起動せず困り果てていましたが、解決に至ったのでメモを残します。

実行環境

バージョン: macOS Catalina Version 10.15.2
Shell: fish

原因

fishでした。

問題発生時、筆者の~/.bashrcは以下のようになっていました。

~/.bashrc
# /usr/bin/env bash
exec fish

解決方法

~/.bashrcを以下のように変更します。

~/.bashrc
# /usr/bin/env bash

[[ $- != *i* ]] && return

exec fish

[[ $- != *i* ]] && returnの記述は、「インタラクティブシェルでない場合(スクリプトなどから呼ばれた場合)にはその先を実行せず終了する」という意味です。これにより、fishが起動するのはターミナルなどから手動で呼ばれた時のみになります。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?