NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.32k stars 13.56k forks source link

bug: syncthing-tray isn't dependent on syncthing #155481

Open MichaelAkvo opened 2 years ago

MichaelAkvo commented 2 years ago

Describe the bug

syncthing-tray does have syncthing as a dependency, so just installing syncthing-tray leads to an empty tray icon.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install syncthing-tray
  2. Open tray item
  3. Try to open preferences

Expected behavior

When I install syncthing-tray, I expect it to be usable without having to specify that "yes, I do want syncthing too".

Screenshots

No preferences are opened and one can't point to an external syncthing even if one wanted to. image

Additional context

This is on KDE Plasma5. Haven't tested on Gnome (or whatever they call it now).

Notify maintainers

@nickhu

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.88, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(root): `"nixos-21.11.334814.04bd2d1a470"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
MichaelAkvo commented 2 years ago

In fact, syncthing-tray doesn't even work for me with syncthing installed.

I followed https://nixos.wiki/wiki/Syncthing

services = {
    syncthing = {
        enable = true;
        user = "michael";
        dataDir = "/home/michael/Sync";    # Default folder for new synced folders
        configDir = "/home/michael/.config/syncthing";   # Folder for Syncthing's settings and keys
    };
};

It successfully starts syncthing on http://127.0.0.1:8384/ , but syncthingtray still doesn't show anything.

SaltyKitkat commented 2 years ago

It successfully starts syncthing on http://127.0.0.1:8384/ , but syncthingtray still doesn't show anything.

Like this?

Screenshot

click anything in right-click menu also cannot work normally, and log says something like

plasmashell[1336]: file:///nix/store/zb7xamnw6bmfw44wfck5fvcilvdw8pas-syncthingtray-1.1.3/share/plasma/plasmoids/martchus.syncthingplasmoid/contents/ui/main.qml:53: TypeError: Property 'showLog' of object QObject(0x4297830) is not a function

The DE I use is kde plasma and NixOS version is 22.05.20220207.60c52a7

It seems that this is related to Qt or plasma? Maybe something is missing?