How do I install libdbus-1.so.3?

Started getting the following error a couple months ago when trying to run synology-drive (not sure why since it used to run fine):

debug.message: Cannot find path by key "user_cloud_station_app_path"
debug.message: Cannot find path by key "user_cloud_station_data_path"
debug.message: Cannot find path by key "user_cloud_station_working_dir_path"
debug.message: Cannot find path by key "user_cloud_station_drive_ui_path"
/home/guttermonk/.SynologyDrive/SynologyDrive.app/bin/cloud-drive-ui: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: No such file or directory

I tried installing dbus like this blog suggested, but that didn’t work. Also found this stack but it wasn’t much help.

How do I install libdbus-1.so.3 and is there a way to check if it’s installed?

Still at a loss. This post suggests either dbus, dbus_tools, or dbus_libs. Tried dbus in the previous post and couldn’t find the other two packages:
Are there any package include libdbus-1.so.3 in nixpkgs · Issue #84480 · NixOS/nixpkgs · GitHub

You don’t install libraries, period. Besides, packages in nixpkgs should be packaged correctly. I see you have an open issue synology-drive-client: libdbus-1.so.3 error · Issue #408444 · NixOS/nixpkgs · GitHub, that’s where it needs to get solved.

Thought since the other person couldn’t repro it, make sure you’re not setting random envvars like LD_LIBRARY_PATH or other hacky things that will definitely break your system.

Okay, thanks for the feedback. These are the only envvars I have set in my nix config:

  environment.sessionVariables = {
    _JAVA_AWT_WM_NONREPARENTING = "1";
    ANKI_WAYLAND = "1";
    CLUTTER_BACKEND = "wayland";
    GDK_BACKEND = "wayland";
    GSETTINGS_SCHEMA_DIR = "{pkgs.gsettingss-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
    GTK_USE_PORTAL = "1";
    EDITOR = "hx";
    LIBVA_DRIVER_NAME = "i965"; #env var for intel graphics https://wiki.nixos.org/wiki/Accelerated_Video_Playback
    MOZ_ENABLE_WAYLAND = "1";
    NIXOS_OZONE_WL = "1";
    NIXOS_XDG_OPEN_USE_PORTAL = "1";
    PASSWORD_STORE_DIR = "$HOME/.local/share/password-store";
    POLKIT_AUTH_AGENT = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
    SDL_VIDEODRIVER = "wayland,x11,windows";
    SOPS_AGE_KEY_FILE = "$HOME/.sops/key.txt";
    QT_AUTO_SCREEN_SCALE_FACTOR = "1";
    QT_QPA_PLATFORM = "wayland;xcb";
    QT_QPA_PLATFORMTHEME = "gtk3";
    QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
    WLR_NO_HARDWARE_CURSORS = "1";
    XDG_CURRENT_DESKTOP = "Hyprland";
    XDG_DATA_HOME = "$HOME/.local/share";
    XDG_RUNTIME_DIR = "/run/user/$UID";
    XDG_SESSION_DESKTOP = "Hyprland";
    XDG_SESSION_TYPE = "wayland";
  };

I have these set in my hyprland config:

      env = [
        "GDK_BACKEND=wayland,x11"
        "PATH,/home/guttermonk/.config/zide/bin:$PATH"
        "QT_QPA_PLATFORM=wayland,xcb"
        "QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
        "QT_QPA_PLATFORMTHEME=qt5ct"
        "WLR_DRM_NO_ATOMIC,1"
        "XCURSOR_SIZE,20"
        "XCURSOR_THEME,Bibata-Modern-Ice"
        "XDG_CURRENT_DESKTOP,Hyprland"
        "XDG_SESSION_TYPE,wayland"
        "XDG_SESSION_DESKTOP,Hyprland"
      ];