Closed Mrfiregem closed 2 years ago
I'll be fixing another issue in this program tonight. Will take a look a this as well.
Well, I couldn't confirm. To reproduce the behaviour you described, I had to:
/usr/share/nwg-drawer
folder content is being removed;sudo make install
), which copies files to their desired locations.After proper package installation you should have the /usr/share/nwg-drawer/
folder with the files hotspot.css
& style.css
, and the images
subfolder, containing 25 .svg files. Please check this path on your machine.
I assume you mean /usr/share/nwg-dock
, but yes, all the files are there. I uninstalled dock and drawer and reinstalled dock after making sure there were no lingering folders. Here's my terminal output after cloning the repo and installing from source:
[πΈ nwg-dock]βΊ make get
go get github.com/gotk3/gotk3
go: downloading github.com/gotk3/gotk3 v0.6.1
go get: upgraded github.com/gotk3/gotk3 v0.6.0 => v0.6.1
go get github.com/gotk3/gotk3/gdk
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_sourceβ:
cgo-gcc-prolog:71:2: warning: βg_binding_get_sourceβ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
112 | GObject * g_binding_get_source (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_targetβ:
cgo-gcc-prolog:107:2: warning: βg_binding_get_targetβ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
116 | GObject * g_binding_get_target (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
go get github.com/gotk3/gotk3/glib
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_sourceβ:
cgo-gcc-prolog:71:2: warning: βg_binding_get_sourceβ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
112 | GObject * g_binding_get_source (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_targetβ:
cgo-gcc-prolog:107:2: warning: βg_binding_get_targetβ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
116 | GObject * g_binding_get_target (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
go get github.com/dlasky/gotk3-layershell/layershell
go: downloading github.com/dlasky/gotk3-layershell v0.0.0-20210331230524-5cca0b819261
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_sourceβ:
cgo-gcc-prolog:71:2: warning: βg_binding_get_sourceβ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
112 | GObject * g_binding_get_source (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_targetβ:
cgo-gcc-prolog:107:2: warning: βg_binding_get_targetβ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
116 | GObject * g_binding_get_target (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
go get github.com/joshuarubin/go-sway
go: downloading github.com/joshuarubin/go-sway v0.0.4
go: downloading github.com/joshuarubin/lifecycle v1.0.0
go: downloading go.uber.org/multierr v1.1.0
go: downloading go.uber.org/atomic v1.3.2
go: downloading golang.org/x/sync v0.0.0-20190412183630-56d357773e84
go get github.com/allan-simon/go-singleinstance
go: downloading github.com/allan-simon/go-singleinstance v0.0.0-20210120080615-d0997106ab37
[πΈ nwg-dock]βΊ make build
go build -o bin/nwg-dock *.go
# github.com/gotk3/gotk3/glib
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_sourceβ:
cgo-gcc-prolog:71:2: warning: βg_binding_get_sourceβ is deprecated: Use 'g_binding_dup_source' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:112:23: note: declared here
112 | GObject * g_binding_get_source (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
cgo-gcc-prolog: In function β_cgo_26ff448d08b0_Cfunc_g_binding_get_targetβ:
cgo-gcc-prolog:107:2: warning: βg_binding_get_targetβ is deprecated: Use 'g_binding_dup_target' instead [-Wdeprecated-declarations]
In file included from /usr/include/glib-2.0/glib-object.h:22,
from /usr/include/glib-2.0/gio/gioenums.h:28,
from /usr/include/glib-2.0/gio/giotypes.h:28,
from /usr/include/glib-2.0/gio/gio.h:26,
from ../../../go/pkg/mod/github.com/gotk3/gotk3@v0.6.1/glib/gbinding.go:3:
/usr/include/glib-2.0/gobject/gbinding.h:116:23: note: declared here
116 | GObject * g_binding_get_target (GBinding *binding);
| ^~~~~~~~~~~~~~~~~~~~
[πΈ nwg-dock]βΊ sudo make install
[sudo] password for cheer:
mkdir -p /usr/share/nwg-dock
cp -r images /usr/share/nwg-dock
cp config/* /usr/share/nwg-dock
cp bin/nwg-dock /usr/bin
[πΈ nwg-dock]βΊ nwg-dock
Neither 'nwg-drawer' nor 'nwggrid' command found, and no other launcher specified; hiding the launcher button.
Creating dir: /home/cheer/.config/nwg-dock
Copying file: /home/cheer/.config/nwg-dock/style.css
/home/cheer/.config/nwg-dock/style.css file not found, using GTK styling
(0x6faa40,0xc00010ad70)
** (nwg-dock:597205): WARNING **: 15:40:29.817: gtk-layer-shell v0.6.0 may not work on GTK v3.24.30. If you experience crashes, check https://github.com/wmww/gtk-layer-shell/blob/master/compatibility.md
refreshing...
(0x6faa40,0xc0000125c0)
^Cβ
[130 nwg-dock]βΊ exa -T /usr/share/nwg-dock/
/usr/share/nwg-dock
βββ hotspot.css
βββ images
β βββ 1.svg
β βββ 2.svg
β βββ 3.svg
β βββ 4.svg
β βββ 5.svg
β βββ 6.svg
β βββ 7.svg
β βββ 8.svg
β βββ 9.svg
β βββ 10.svg
β βββ 11.svg
β βββ 12.svg
β βββ 13.svg
β βββ 14.svg
β βββ 15.svg
β βββ 16.svg
β βββ 17.svg
β βββ 18.svg
β βββ 19.svg
β βββ 20.svg
β βββ grid.svg
β βββ icon-missing.svg
β βββ task-empty.svg
β βββ task-multiple.svg
β βββ task-single.svg
βββ style.css
"nwg-dock" of course.
The warnings you see while building come from the gotk3 library and don't affect the program itself.
I'd like to know what (0x6faa40,0xc00010ad70)
and (0x6faa40,0xc0000125c0)
mean. The released version mistakenly prints some errors as pointers instead on text. It's been already fixed on the debug branch, but I can't merge it yet, due to another issue I'm currently trying to fix. Hopefully it's going to be ready soon. You may either wait a day or two for the new release, or try and build from the debug
branch, run and show me the output again.
Rebuilding with the debug branch helped a lot:
Failed to open file β/home/cheer/.local/share/nwg-dock/images/1.svgβ: No such file or directory
Failed to open file β/home/cheer/.local/share/nwg-dock/images/grid.svgβ: No such file or directory
Running ln -s /usr/share/nwg-dock/ ~/.local/share/
fixed the issue, but I wonder why the files in /usr/share/nwg-dock
aren't being read.
same problem with the local directory on void-linux
Describe the bug When running
nwg-dock
, the icons for the ws and drawer aren't loaded, the two buttons become very thin, and do nothing when clicked.To Reproduce Steps to reproduce the behavior:
nwg-dock
Expected behavior The svg icons installed with the program should be used, and the buttons should be functional.
Screenshot (Ingore the styling since there's no css file. Issue even if copying over the default css file.)
Desktop (please complete the following information):
Additional context