Gradience icon indicating copy to clipboard operation
Gradience copied to clipboard

bug: gradience deos not start

Open rellit opened this issue 3 years ago • 17 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What happened?

I'm on a freah gnome 43 install on arch linux. Gradience installed via flatpak or via aur. Both versions do not start up at all. journalctl sais this is because there is no ~/.config/gtk-4.0/gtkl.css.

That' right, there ist no such file. Just a settings.ini.

Gnome is indeed working and looks correct.

Wehn logging into a session with a freah created user, there is also no gtk.css. So i asume this is default behavior.

To Reproduce

  1. Install gnome on arch.
  2. Try to launch gradience

Expected behavior

No response

Screenshots

No response

OS

Arch Linux

DE/WM version

GNOME 43.3

Version

0.4

Installation method

Flatpak from Flathub

Enabled system extensions (GNOME specific)

No response

Additional context

Mär 08 17:00:51 hq-arch systemd[983]: Started Application launched by gnome-shell.
Mär 08 17:00:51 hq-arch systemd[983]: Started app-flatpak-com.github.GradienceTeam.Gradience-7486.scope.
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: [Gradience] WARNING: Custom preset not found. Fallback to Adwaita
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: Traceback (most recent call last):
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 252, in load_preset_from_css
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/backend/css_parser.py", line 47, in parse_css
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: FileNotFoundError: [Errno 2] Datei oder Verzeichnis nicht gefunden: '/home/tim/.config/gtk-4.0/gtk.css'
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: During handling of the above exception, another exception occurred:
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: Traceback (most recent call last):
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 148, in do_activate
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 279, in load_preset_from_css
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 307, in load_preset_from_resource
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 333, in load_preset_variables_from_preset
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]:   File "/usr/lib/python3.10/site-packages/gradience/frontend/main.py", line 440, in reload_variables
Mär 08 17:00:51 hq-arch com.github.GradienceTeam.Gradience.desktop[2639]: TypeError: Gtk.CssProvider.load_from_data() takes exactly 3 arguments (2 given)

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

rellit avatar Mar 08 '23 16:03 rellit

Welcome on Gradience. 🥳 We really appreciate your contribution. The core team will review your issue as soon as possible. You can also join the Matrix room: https://matrix.to/#/#Gradience-space:envs.net or the Discord server: https://discord.com/invite/4njFDtfGEZ

github-actions[bot] avatar Mar 08 '23 16:03 github-actions[bot]

Confiirmed. Not starting Archlinux

Neo-29 avatar Mar 08 '23 17:03 Neo-29

Related: #722 ~Are you sure you get the same tracebacks with Flatpak Gradience?~ Nevermind, the provided traceback is from a Flatpak release.

Release from AUR doesn't work, because it hasn't been yet updated to 0.4.1 which has a patch for new breaking change in GTK 4.10, but it doesn't seem right that Flatpak release would also have this issue, as it got a update to 0.4.1

tfuxu avatar Mar 08 '23 17:03 tfuxu

I locally built with 0.4.1 on arch Same issue.

Neo-29 avatar Mar 08 '23 17:03 Neo-29

Like i wrote, i tried both ways. Built with aur and tried flatpak. Both Versions not starting

The log I attached was from the flatpak attempt.

rellit avatar Mar 08 '23 17:03 rellit

Tried again, to check Versions. Flathub lists Version 4.0 for me. Same as when i build gradience from AUR. When building gradience-git, I get Version 4.1 which starts up. So I think I will close this issue.

Thanks for your help

rellit avatar Mar 08 '23 17:03 rellit

Flathub lists Version 0.4.0 for me.

Ah yes, I've noticed that now, looks like I forgot to update project version before releasing 0.4.1 🤦‍♂️️. You should be able to return to stable Gradience AUR package soon, I'll notify package maintainers after I fix that problem with incorrect versioning. Thanks for reporting.

tfuxu avatar Mar 08 '23 18:03 tfuxu

I locally built with 0.4.1 on arch Same issue.

@Neo-29 I can't reproduce this after (and before) updating to GTK 4.10. Do you get TypeError: Gtk.CssProvider.load_from_data() takes exactly 3 arguments (2 given) error when trying to run Gradience?

tfuxu avatar Mar 08 '23 18:03 tfuxu

I locally built with 0.4.1 on arch Same issue.

@Neo-29 I can't reproduce this after (and before) updating to GTK 4.10. Do you get TypeError: Gtk.CssProvider.load_from_data() takes exactly 3 arguments (2 given) error when trying to run Gradience?

Launching gradience in terminal returns nothing. But no launch.

Neo-29 avatar Mar 08 '23 18:03 Neo-29

Try running it in debug mode by executing local.sh script

tfuxu avatar Mar 08 '23 18:03 tfuxu

Try running it in debug mode by executing local.sh script

This works.

Neo-29 avatar Mar 08 '23 18:03 Neo-29

What commands did you use to install Gradience? Here's a official guide for manual install via Meson: https://github.com/GradienceTeam/Gradience/blob/main/HACKING.md#global-installation

tfuxu avatar Mar 08 '23 18:03 tfuxu

I told you, AUR first with actual version = broken Then local pkgbuild with 0.4.1 = didn't work either 😔😉

Neo-29 avatar Mar 08 '23 18:03 Neo-29

Manual install from source should work as expected for sure.

Neo-29 avatar Mar 08 '23 18:03 Neo-29

I told you, AUR first with actual version = broken Then local pkgbuild with 0.4.1 = didn't work either pensivewink

Oh okay, I thought you installed 0.4.1 right away using Meson

tfuxu avatar Mar 08 '23 18:03 tfuxu

I told you, AUR first with actual version = broken Then local pkgbuild with 0.4.1 = didn't work either pensivewink

Oh okay, I thought you installed 0.4.1 right away using Meson

Nope.. KISS.. I try to use arch power first 💪😅

Neo-29 avatar Mar 08 '23 18:03 Neo-29

This issue still persists for me..Was it fixed? I have tried both gradience and gradience-git from aur

pratyush-1327 avatar Mar 24 '23 04:03 pratyush-1327