-
Notifications
You must be signed in to change notification settings - Fork 93
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
Not working with gnome-shell 3.32 #307
Comments
I'm using version with #299 and getting a different error:
But also does not work. I depend on this plugin, but unfortunately don't know javascript enough to fix it. Would someone please take a look at this? I'm open to some form of donation... |
Thank you, another source of information could be another extension I can't live without that had been already ported: paradoxxxzero/gnome-shell-system-monitor-applet#510 |
@ernestask's branch works great on my system. |
Works great. Thanks a lot @ernestaks! A minor inconvenience, auto-completion does not seem to work in the "What are you doing" dialog. |
I’m pretty sure there should be something in the journal in that case. Otherwise, I am not really interested in further working on this. |
This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307 Heavily based on work by Ernestas Kulik <ekulik@redhat.com>
This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307 Heavily based on work by Ernestas Kulik <ekulik@redhat.com>
Guys, it's been 3 months and we have 2 functional PR versions available. This is, IMHO, the best time tracker for Gnome but it does feel that it is a bit under-loved right now (the latest commit to the main repo was more than one year ago). Could somebody please look into this, @elbenfreund, @tstriker, @FredericGuilbault? Maybe guys from the main hamster repo could help, @ederag, @GeraldJansen ? Maybe one of the PR authors @ernestask, @hedayat or @mwilck might want to become new maintainers? |
Not particularly. Only looked into this because a distant colleague was having issues. |
I have no ambition to become the maintainer of this extension. I'm currently maintaining hamster for openSUSE (I'm much more into Python than Javascript). For openSUSE, I decided to package the extension as RPM to compensate for it being missing on the GNOME extensions web site. I guess in theory, anyone of us could submit an update to extensions.gnome.org. We should be aware that the 3.32 and 3.30 versions are strictly incompatible though; not sure how other extension writers handle that. 3.32 users are probably still the minority today. Does extensions.gnome.org handle the GNOME version dependencies automatically somehow, I mean, is it possible to submit the same extension multiple times, for multiple GNOME shell versions? |
@mwilck as far as I'm concerned (if the UI is any indication), the website does handle different versions of a same extension, as it in fact allows your to download different versions of a given extension (tagged by the version of GS it's compatible with). I think the problem would be that it has to be the original developer the one who submits an updated version. A possible solution would be to just have it as a new extension instead. |
Well, maintaining the main original hamster |
I'm also not someone who can be a real maintainer for this extension. However, if maintaining would mean accepting merge requests and trying to solve small bugs; it'd be possible (I was already thinking about creating a fork with such a goal for myself). But, I'm really not a Javascript guy, and certainly not a good maintainer for this project specially officially. And... there is no need to have a single maintainer. :P I'd be more than willing to help with maintaining this project as far as my time permits. |
I also think it's the best time tracker for linux But Im out of this project. I have worked on a rewrite of hamster project in nodejs. https://gitlab.com/FredericGuilbault/gerboise But at this point it berly usable. So not much of a solution ATM. IMO, at this point of abandon, whatever @hedayat do, it's better then nothing so +1 It been few years alerady but I remember there was some code shared between hamster-shell-extension and the cinamon version of this plugin. Then, cinnamon people asked to become maintainers of their projectHamster extention and integrated it in their big repo who contain all the cinnamon applets. That's a thing I recall. |
Sounds good to me too. @hedayat, I'd be willing to help as time and abilities permit, but like you I'm also not a Javascript guy. I have personal interest to make sure the extension works. It's a shame that maintaining extensions is being made so difficult by the core developers. |
it is. |
@FredericGuilbault are you still working on Gerboise? |
A simple, alternative gnome-shell extension could be constructed with https://github.com/p-e-w/argos and Hamster CLI commands. That would require less maintenance because Argos is well maintained for Gnome updates. |
@GeraldJansen Good idea… I've done a very rough first implementation which depends on xsv and piep (I'll probably do a pure python implementation later) : It proposes to choose an activy among one of the last 14 days. You may still add new activity with hamster CLI. #!/bin/sh
LC_ALL=C hamster current \
| piep "p if p == 'No activity' else p.split(',')[0].split()[2:]"
echo "---"
now=$(date +%Y-%m-%d)
last=$(date +%Y-%m-%d -d "14 days ago")
echo "Stop | terminal=false refresh=true bash='hamster stop'"
LC_ALL=C hamster export tsv "$last" "$now" \
| xsv select -d"\t" "activity,category,description,tags" | xsv sort \
| tail -n+2 | uniq \
| piep "p.splitcomma()|l=f'#{p[3]}' if p[3] else ''
| f'{p[0]}@{p[1]},{p[2]} {l}' | p.strip(', ')
| p + f' | terminal=false refresh=true bash=\'hamster start \"{p}\"\''"
|
@aldomann Yes I do, Quite slowly, but im still on it. I had many trouble with nwjs + sqlite. It be more motivating if I had users/contributors/interested people. |
I've made a more polished version of @matclab's Argos script trying to replicate #!/bin/sh
# Top bar status
LC_ALL=C hamster current \
| piep "' | iconName=media-playback-start-symbolic' if p == 'No activity' else ' | iconName=media-playback-stop-symbolic'"
echo "---"
# Print current activity
echo "Current activity | size=10 | color=#919191"
LC_ALL=C hamster current \
| piep "p if p == 'No activity' else p.split(',')[0].split()[2:]"
# Stop current activity
LC_ALL=C hamster current \
| piep "'Stop Tracking | terminal=false refresh=true bash=\'hamster stop\'' if p != 'No activity' else ''"
# Get list of recent activities
now=$(date +%Y-%m-%d)
last=$(date +%Y-%m-%d -d "14 days ago")
echo "Recent activities | size=10 | color=#919191"
LC_ALL=C hamster export tsv "$last" "$now" \
| xsv select -d"\t" "activity,category,description,tags" | xsv sort \
| tail -n+2 | uniq \
| piep "p.splitcomma()|l=f'#{p[3]}' if p[3] else ''
| f'{p[0]}@{p[1]},{p[2]} {l}' | p.strip(', ')
| '--' + p + f' | terminal=false refresh=true bash=\'hamster start \"{p}\"\''"
# Additional GUI options
echo "---"
echo "Show Overview | terminal=false refresh=true bash='hamster overview'"
echo "Add Earlier Activity | terminal=false refresh=true bash='hamster add'" Some points to keep in mind:
Missing features
|
And here is a pure python version expanding on @aldomann one: https://gist.github.com/matclab/3a36d46e16bee776d0739292bcacaa9b |
Didn't realise Argos supported Python. That's great, since bash can be a bit messy for some more complex stuff. |
@matclab, nice work in incredibly little time! Yet AFAICS it's still missing the features I need most about the extension - being able to type in a new activitiy (with autocompletion) and the "edit activity" buttons. So for the time being, I hope the JS extension can be repaired once more. |
@mwilck unfortunately Argos does not allow for easy user input. However, I've added a "+" icon in order to launch the hamster UI for adding new action with completion. The new version has its own repo: https://github.com/matclab/argos-hamster-plugin, which will allow to discuss it there and stop polluting this issue. |
Closing in favor of issue #315 |
See #315 for a fix for GNOME 3.34. |
Solution for 3.32 (title of this issue!) is mentioned in #315 (comment) and #301. |
This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307 Heavily based on work by Ernestas Kulik <ekulik@redhat.com>
This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307 Heavily based on work by Ernestas Kulik <ekulik@redhat.com>
This patch is heavily based on original work by Ernestas Kulik <ekulik@redhat.com>. This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307
This patch is heavily based on original work by Ernestas Kulik <ekulik@redhat.com>. This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307
This patch is heavily based on original work by Ernestas Kulik <ekulik@redhat.com>. This patch is required to make hamster-shell-extension work on GNOME 3.32. At the same time, it breaks compatibility with older gnome-shell versions that don't support ES6 class syntax. See https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/361 Fixes projecthamster#307
This nice extension does not work anymore on gnome-shell 3.32.
logs say:
The text was updated successfully, but these errors were encountered: