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

Can't get dbus working on M1 as guide suggests #2824

Closed
s1gtrap opened this issue Nov 8, 2023 · 9 comments
Closed

Can't get dbus working on M1 as guide suggests #2824

s1gtrap opened this issue Nov 8, 2023 · 9 comments
Labels

Comments

@s1gtrap
Copy link

s1gtrap commented Nov 8, 2023

Description

Hi, I'm trying to get this working on an M1 machine.

This is my 5th or so attempt but I’m fairly certain it is a clean install (having run brew unlink/brew uninstall for dbus, zathura-pdf-poppler, zathura and girara. This also seems like it might be a dbus problem as the current problem is seemingly only with dbus, but I figured I would try here first as others seem to have resolved their dbus with help from here.

Following the :help vimtex-faq-zathura-macos docs:

  1. brew install dbus finishes successfully

  2. So does adding export DBUS_SESSION_BUS_ADDRESS="unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET” to .zshrc, naturally.

  3. I assume /usr/local/opt/dbus/share/dbus-1/session.conf is substituted by /opt/homebrew/Cellar/dbus/1.14.10/share/dbus-1/session.conf in my case, since I’m on an M1, but if that’s true the entry is changed to the following

    <auth>DBUS_COOKIE_SHA1</auth>
    
  4. This is where it starts to go wrong…
Upon reloading the shell and running brew services start dbus, it seemingly starts fine:

    $ brew services start dbus
    ==> Successfully started `dbus` (label: org.freedesktop.dbus-session)
    

    but upon checking

    $ brew services info dbus
    dbus (org.freedesktop.dbus-session)
    Running: ✘
    Loaded: ✔
    Schedulable: ✘
    

    which is where it all starts to go wrong. Running brew services start dbus again

    $ brew services start dbus
    Bootstrap failed: 5: Input/output error
    Try re-running the command as root for richer errors.
    Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/s1g/Library/LaunchAgents/org.freedesktop.dbus-session.plist` exited with 5.
    

    and dbus-launch gets me

    $ dbus-launch
    dbus-daemon[9336]: Failed to start message bus: launchd's environment variable DBUS_LAUNCHD_SESSION_BUS_SOCKET is empty, but should contain a socket path.
    
    EOF in dbus-launch reading address from bus daemon
    

    also running the launchctl command as sudo just gets me:

    $ sudo /bin/launchctl bootstrap gui/501 /Users/s1g/Library/LaunchAgents/org.freedesktop.dbus-session.plist
    Bootstrap failed: 5: Input/output error
    

So yea I’m really at a loss..

Steps to reproduce

No response

Expected behavior

No response

Actual behavior

No response

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: macOS 14.1 (23B74)
  Vim version: NVIM v0.9.4
  Has clientserver: true
  Servername: /var/folders/m6/nyw0tbd5239gngtm06pzykr00000gn/T/nvim.s1g/GvUYPs/nvim.9533.0

VimTeX project: article
  base: article.tex
  root: /Users/s1g/Workspaces/BSc/report
  tex: /Users/s1g/Workspaces/BSc/report/article.tex
  main parser: current file verified
  document class: article
  packages: adjcalc beramono biblatex blx-case-expl3 collectbox courier epstopdf-base etoolbox expl3 fontenc graphics graphicx iftex ifthen infwarerr keyval kvoptions kvsetkeys listings logreq lstlang1 lstlang2 lstlang3 lstmisc ltxcmds pdftexcmds realboxes titlesec trig url xcolor xkeyval xparse xpatch
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: Zathura
    xwin id: 0
  qf method: LaTeX logfile
@s1gtrap s1gtrap added the bug label Nov 8, 2023
@lervag
Copy link
Owner

lervag commented Nov 8, 2023

I'm sorry; as I don't use Mac myself, I don't really have a good way to help. I'm hoping someone like @clason might be able to help, though?

@clason
Copy link
Contributor

clason commented Nov 8, 2023

I don't use Zathura, sorry!

@s1gtrap
Copy link
Author

s1gtrap commented Nov 8, 2023

@clason Well zathura is far from a must, I just need a PDF viewer to reliably see what I'm working on. But either way this doesn't really appear to be a zathura issue, more of a dbus problem so all depending it might still apply..

@clason
Copy link
Contributor

clason commented Nov 8, 2023

Yes, but Skim (which I use) doesn't rely on dbus.

@s1gtrap
Copy link
Author

s1gtrap commented Nov 8, 2023

Awesome! Skim seems to be working out of the box :)

Not sure what to do about this issue, but other people do appear to be experiencing the same issue with dbus: https://github.com/orgs/Homebrew/discussions/2318

@lervag
Copy link
Owner

lervag commented Nov 8, 2023

Happy to see you find Skim to work nicely. Regarding the issue, I propose we close it. I don't have any idea how to resolve it, and I don't see the value in keeping things open unless there is someone able and willing to possibly resolve it.

@ravibrock
Copy link

ravibrock commented Nov 14, 2023

Speaking as someone who uses VimTeX on Mac, tt could nip some of these issues in the bud if the docs simply suggest using Sioyek or Skim on MacOS - I remember spending hours trying to get Zathura working on Mac, just to eventually give up and discover that Sioyek is, as far as I can tell at least, roughly a 1-to-1 replacement on Mac that works out of the box.

lervag added a commit that referenced this issue Nov 15, 2023
@lervag
Copy link
Owner

lervag commented Nov 15, 2023

Thanks for the suggestion, @ravibrock. I've updated the docs.

I'll also take the liberty of closing this issue.

@lervag lervag closed this as completed Nov 15, 2023
@Zdmai
Copy link

Zdmai commented Feb 28, 2024

Speaking as someone who uses VimTeX on Mac, tt could nip some of these issues in the bud if the docs simply suggest using Sioyek or Skim on MacOS - I remember spending hours trying to get Zathura working on Mac, just to eventually give up and discover that Sioyek is, as far as I can tell at least, roughly a 1-to-1 replacement on Mac that works out of the box.

thanks, that's awsome

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

No branches or pull requests

5 participants