Coder Social home page Coder Social logo

2nv2u / gnome-shell-extension-syncthing-indicator Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 9.0 236 KB

Put an indicator on the panel signalling the Syncthing daemon status using SystemD

Home Page: https://extensions.gnome.org/extension/1070/syncthing-indicator/

License: GNU General Public License v3.0

JavaScript 95.13% CSS 1.83% Shell 3.04%
gjs gnome gnome-shell gnome-shell-extension syncthing syncthing-daemon

gnome-shell-extension-syncthing-indicator's People

Contributors

2nv2u avatar dr4ke avatar gyuris avatar mogorman avatar palatis avatar wbolster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gnome-shell-extension-syncthing-indicator's Issues

FR: Syncthing Binary Path

It could be useful to add a setting to specify the binary path of syncthing
In my case I put some apps' binaries in ~/.local/bin to keep my system clean.

but indicator was unable to found it i have to put it in /usr/local/bin

Syncthing daemon cannot be started, check log for more details

Syncthing daemon cannot be started, check log for more details.
[@x ~]$ journalctl | syncthing
[start] 2023/08/25 14:13:36 INFO: syncthing v1.23.6 "Fermium Flea" (go1.20.5 linux-amd64) mockbuild@fedora-koji 2023-07-07 00:00:00 UTC
[start] 2023/08/25 14:13:36 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?)
[monitor] 2023/08/25 14:13:36 INFO: Syncthing exited: exit status 1
[start] 2023/08/25 14:13:37 INFO: syncthing v1.23.6 "Fermium Flea" (go1.20.5 linux-amd64) mockbuild@fedora-koji 2023-07-07 00:00:00 UTC
[start] 2023/08/25 14:13:37 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?)
[monitor] 2023/08/25 14:13:37 INFO: Syncthing exited: exit status 1
[start] 2023/08/25 14:13:38 INFO: syncthing v1.23.6 "Fermium Flea" (go1.20.5 linux-amd64) mockbuild@fedora-koji 2023-07-07 00:00:00 UTC
[start] 2023/08/25 14:13:38 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?)
[monitor] 2023/08/25 14:13:38 INFO: Syncthing exited: exit status 1
[start] 2023/08/25 14:13:39 INFO: syncthing v1.23.6 "Fermium Flea" (go1.20.5 linux-amd64) mockbuild@fedora-koji 2023-07-07 00:00:00 UTC
[start] 2023/08/25 14:13:39 WARNING: Error opening database: resource temporarily unavailable (is another instance of Syncthing running?)
[monitor] 2023/08/25 14:13:39 INFO: Syncthing exited: exit status 1
[monitor] 2023/08/25 14:13:40 WARNING: 4 restarts in 4.062420656s; not retrying further

error message does not appear when gnome shell syncthing indicator is closed.

Impossible to install the extension in gnome-shell. Zombie extension?

GNOME Shell 42.5
Ubuntu 22.04.2 LTS

I installed the extension using the provided script install.sh
But it failed with Extension “[email protected]” does not exist
So I retried manually:

$ gnome-extensions install [email protected]
[email protected] exists and --force was not specified
$ gnome-extensions enable [email protected]
Extension “[email protected]” does not exist
$ gnome-extensions list 
[email protected]
[email protected]
[email protected]
[email protected]

How is that even possible?
The extension exists but it does not exist?

I may be a gnome-shell bug, but since they have 4000+ open bugs, including segfaults, I doubt this bug - that may be only related to this extension - deserves a bug there.

installation fails 42.2

This has worked great for me for a good while now, so thanks,
Now i am fully upgraded to
fedora 36
5.17.13-300.fc36.x86_64
gnome 42.2
anything else?

Update from the gnome extension site fails and leaves the system in error state.
Bit of a shame as it was working before (fedora 35)

Did the git clone and install and that works. That's the only reason i add the issue, seems strange that git works when web install does not.

Any logs needed i can provide, just don't know which now.
Anyway, thanks

Error: Cannot find Syncthing config

Since updgrade from PopOS 21.10 to 22.04 with Gnome 42 I get the following error message

Screenshot from 2022-04-29 22-41-03

I removed and reinstalled the extionsion, rebootet the system, restart syncthing. Nothing solved it.

Where do I find the extension log?

Error after update

Error message after update.
I did Remove extension, and reinstall but that does does nothing. Not a new install extension in .local/share/shell ... extensions

TypeError: Gtk.IconTheme.get_default(...) is null

When I install this extensions I get the follow error message

 JS ERROR: Extension [email protected]: TypeError: Gtk.IconTheme.get_default(...) is null
                                        init@~/.local/share/gnome-shell/extensions/[email protected]/extension.js:436:16
                                        _callExtensionInit@resource:///org/gnome/shell/ui/extensionSystem.js:428:50
                                        loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js:345:27
                                        _loadExtensions/<@resource:///org/gnome/shell/ui/extensionSystem.js:590:18
                                        collectFromDatadirs@resource:///org/gnome/shell/misc/fileUtils.js:27:17
                                        _loadExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:569:19
                                        _enableAllExtensions@resource:///org/gnome/shell/ui/extensionSystem.js:599:18
                                        _sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:630:18
                                        init@resource:///org/gnome/shell/ui/extensionSystem.js:55:14
                                        _initializeUI@resource:///org/gnome/shell/ui/main.js:254:22
                                        start@resource:///org/gnome/shell/ui/main.js:143:5
$ gnome-shell --version
GNOME Shell 3.36.7

No connection on Arch-based GNOME 45

First of all, let me thank you for making this extension.

I tried to use it on two different machines with GNOME 45 (Manjaro and EndeavourOS), but did not work in both.
Not sure what is the problem but it simply would not connect to synchthing.
Hope I can get some help...

Using syncthingtray until it is not fixed.

Thanks again, cheers

Socket I/O timed out

I'm running this on NixOS, where Syncthing is installed as a system service.

The indicator loads the initial state but does not refresh after that.

I'm seeing this error in the logs.

JS ERROR: Gio.IOErrorEnum: Socket I/O timed out
openConnectionMessage/<@/run/current-system/sw/share/gnome-shell/extensions/[email protected]/syncthing.js:804:26

Do you have any ideas what could be causing this?

The extension makes top bar menus larger than normal

This is strange actually. I've had this issue for some time, but I realized just now that Syncthing Indicator is responsible. When the extension is enabled, all the top bar menus become larger: places, system menu, app menu...

An example below:
(extension disabled)
Schermata del 2021-04-03 22-32-07

(extension enabled)
Schermata del 2021-04-03 22-32-47

This is on GNOME 40, but the issue was there on 3.38 too.

Add support for localization

How to translate this extension? Please add support for localization.

I would like to create the Hungarian translation.

Packaged releases?

Will it be possible and sustainable in current scope of the project to release this extension as .deb and/or .rpm packages?

In my case, this will be useful for Fedora Silverblue multiuser setup.

syncthing-indicator not finding running syncthing instance

Hi!
I'm getting this error every 20 seconds:
gnome-shell[115898]: [syncthing-indicator-manager:ERROR], Service failed to start, syncthing.service
gnome-shell[115898]: error: Syncthing Indicator: daemon-error

Unfortunately I cant find documentation about how the indicator expects synthing to be started?

I have configured syncthing to startup via systemd as described in the syncthing docs.
./systemd/system/multi-user.target.wants/[email protected]
./systemd/system/sleep.target.wants/syncthing-resume.service

what can I do to get it working together?

Disabled on GNOME 41

This extension doesn't work any more on GNOME 41 (NixOS-unstable), it's disabled itself because of missing metadata.

image

I assume it's as simple as adding the version to src/metadata.json

Change the green checkmark colour to be more visible

Currently it's difficult to see in both light and dark modes.

Light mode:
image

Dark mode:
image

Suggestion: Use bright green for dark mode and dark green for light mode, or one shade that remains clearly visible in both modes.

Syncthing Indicator causing 100% CPU usage and gnome-shell errors

I originally reported this as an issue to GNOME Shell, but it turns out it's caused by the Syncthing Indicator extension:
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6071

Essentially, when the Syncthing Indicator extension is enabled and Syncthing is running, the gnome-shell process throws constant errors and uses 100% CPU on one core.

It's caused by libsoup errors. A GNOME Shell developer said the following, which might be helpful:

I had a quick look at the extension source code and it seems like it has not been adapted to this change between soup2 and soup3: https://libsoup.org/libsoup-3.0/migrating-from-libsoup-2.html#status-codes-no-longer-used-for-internal-errors in openConnectionMessage. Since this has some code that could potentially end up creating lots of timeout sources, this might be what's causing the problem.

Does not work on Pop!_OS 21.04

Getting this error (on GNOME 3.38.4) repeatedly. The daemon is running and working fine.

image

Let me know if you need any more information. Thank you!

Syncthing-indicator log messages

Hi,
first, thanks for your extension. It's great.
I wanted to report some error messages that appear in journalctl (see attached). I should add that the extension keeps working despite theses messages.
log.txt
I can't tell what triggers them.
I use gnome 41 & fedora 35.
Let me know if you need any information.

On OpenSuse Tumbleweed - Continious message "connection-error"

Sincthyng works perfectly.
Slices "start from boot" and "service" work.
Connection to web interface opens fine.

What is not working is:
1st. Hostname device detection. It says just "This-device".
2nd. Folders shared detection. After remove default one I cannot set nor make them detected. I mean, after log-out/log-in or reboot.
3rd. Probrably "rescan" should make second point work but no effect detected after click on it.

Thanks

"Connecting to 'device-id'..." error messages being thrown endlessly

Hi, first I want to thank you for this extension. However, there seem to be a bug that is driving me crazy. I use Syncthing to sync one folder between my desktop and my smartphone, so the service is always running is background at boot time on both devices. Things work just fine at first, but at some point (and this happens all the time) the extension on my desktop goes crazy: it starts bombing me with tons of notifications nonstop saying there's a connection error to my smartphone. Screenshot below, full message is something like "Syncthing indicator service error, Connecting to 'device-id'...".

photo_2021-03-02_10-11-25

Syncthing service keeps working fine, Web UI also opens without errors, but I have to restart the service in order to stop the notifications.

I can't exactly tell what is causing this. It appears to be due to my smartphone disconnecting from WiFi and then reconnecting immediately after (bad signal) but I can't be sure. Regardless of the cause, the extension shouldn't bomb me with error messages for no reason.

Can you test it (gnome 43)

Hello do you think it's possible to test it (and enable support) for gnome 43 beta (fedora user will need it soon)).

Gnome 42.4 Error: Object 0x25caec0a3430 is not a subclass of GObject_Object, it's a Promise

OS: Fedora Linux 36 (Workstation Edition)
Gnome Version: 42.4
Windowing System: Wayland

The Syncthing Indicator extension is broken. The extension loads successfully and I can see the icon on the top bar, but nothing works. The extension does not connect to the Syncthing service although it does successfully starts the service (I can see it running in the System Monitor). It does not show any of the connected devices or synced folders.

In the Extensions application, the extension is shown as not enabled (even though it is) and the following error message is shown:

Object 0x25caec0a3430 is not a subclass of GObject_Object, it's a Promise

Screenshot from 2022-09-27 13-14-01

Gnome Extensions keeps downgrading syncthing-indicator

Gnome Extensions keeps downgrading syncthing-indicator to version 17. I tried installing versions 18 and 19 from GitHub but the extension is downgraded automatically immediately after. If I try to install it from gnome's website it just says that it's incompatible. Could it be syncthing-indicator's fault?

Arch Linux
GNOME 40.1

Error with paused folders

With paused folders, I have an error every time the extension checks its status (I guess):

[syncthing-indicator-manager:ERROR], Not Found, GET:/rest/db/completion, 404, folder is paused

I suppose that we could skip paused folders.

I may be able to do some more debugging if needed.

syncthing-indicator starts syncthing but issues 'can't find syncthing confi' notification and doesn't update tray app

Hi, Great, simple indicator.

After syncing gnome-shell extensions between two machines, my previously working syncthing tray indicator on an updated (from 25 to 27) machine started throwing this error message
"Syncthing Indicator
Cannot find syncthing config, syncthing might not be installed, check log for more details."

The syncthing-indicator is starting syncthing. I can access the web interface independently, and files sync.
The .local/share/gnome-shell/extensions/[email protected] directories and files are identical.

The tray app show syncthing as not running, the host device and other connected devices are not identified, and no folder are populated in the drop down. I can toggle the Service and Autostart toggles, and they start and stop the service and autostarting.

Not sure where else to look to troubleshoot this and hoping you can help, is there some other setting that may or may not have been synced which would throw this error? I have uninstalled the extension multiple times between shell restarts and complete reboots, and nothing will get the tray indicator to update with devices and folders, although syncthing is running.

Thank you for any insight you might have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.