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

[решение] как в browser-sync поменять браузер по умолчанию на другой #128

Open
Sellato opened this issue Dec 4, 2021 · 4 comments

Comments

@Sellato
Copy link

Sellato commented Dec 4, 2021

Столкнулся с проблемой, что не могу поменять браузер по умолчанию на chrome

Казалось бы правим файл plugins-config.json и получем исконный результат, и даже подсказка для тупых есть, бери да делай!
Ан-нет на Linux не работает эта самая подсказака.

        // Choose browser to open
        // @type {String|Array}
        // Example: ['google chrome', 'firefox']
        // Avalible: safari, internet explorer, google chrome, firefox, opera
        "browser": "default",
        "injectChanges": false

при подстановке google chrome или chrome получаем большой облом, нет такого браузера :(

Лечится это тривиально :)

  1. Находим ярлык Google Chrome
  2. Правой клавишей выши вызываем меню
  3. Выбираем пункт "Изменить Приложение"
  4. Смотрим, что указано в строке Комманда:
  5. Вот это и прописываем в конфиг

у меня Google Chrome прописан как google-chrome-stable

вот, что получилось

        // Choose browser to open
        // @type {String|Array}
        // Example: ['google chrome', 'firefox']
        // Avalible: safari, internet explorer, google chrome, firefox, opera
        "browser": "google-chrome-stable",
        "injectChanges": false

Теперь все как надо, вызывается Google Chrome

Всем удачи!

@Sellato
Copy link
Author

Sellato commented Dec 4, 2021

А вот как подключить сразу массив баузеров. Откроются 4 браузера
Строка

"browser": ["google-chrome-stable", "vivaldi","firefox", "opera"],

@artem-malko
Copy link
Member

@Sellato а не хочешь стать мейнтейнером проекта?)

@Sellato
Copy link
Author

Sellato commented Dec 4, 2021

смеешься, я только начал топтаться по этой теме :)

@artem-malko
Copy link
Member

@Sellato мне кажется, у тебя хорошо выходит разбираться!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants