WayfireWM / wf-shell

A GTK3-based panel for wayfire
https://wayfire.org/
MIT License
134 stars 31 forks source link

dock support icon of type svg ? #130

Open prehonor opened 2 years ago

prehonor commented 2 years ago

icon_mapping_jetbrains-idea = /nix/store/b6mnxs4n5bb4vd6mf8r56v3yfvwwzwpx-idea-ultimate-2022.1.3/share/pixmaps/idea-ultimate.png icon_mapping_jetbrains-clion = /nix/store/nc20sl61061adyg62z3ys8b3h6c8dkdy-clion-2022.1.3/share/pixmaps/clion.pngq icon_mapping_sublime_text = /nix/store/5zvlx2ffg0xv2pbnsjgyklc3m2k9layf-sublimetext4-4113/share/icons/hicolor/256x256/apps/sublime-text.png icon_mapping_telegramdesktop = /nix/store/qc8if3pl8wz2i9g5i0zmz5dacc60ji9g-telegram-desktop-3.7.3/share/icons/hicolor/256x256/apps/telegram.png icon_mapping_pcmanfm = /home/prehonor/.local/share/icons/file_manager.png position = bottom icon_mapping_Emacs = /nix/store/dgb1hnaln9bp0gk5fxhdpkyh91l5v0my-emacs-28.1/share/icons/hicolor/128x128/apps/emacs.png icon_mapping_cutter = /nix/store/ir2skf40bhnwnr7www9n6qg6ynpl5cc7-cutter-2.1.0/share/icons/hicolor/scalable/apps/cutter.svg icon_mapping_ghidra-Ghidra = /nix/store/vhvadm37z2ajk6bby66bh9qcsp29814j-ghidra-10.1.4/share/icons/hicolor/256x256/apps/ghidra.png

the line contains .svg dosnt work

allaboutmikey commented 1 year ago

Interesting. My wf-shell.ini has this pair of lines for gedit which work:

launcher_cmd_gedit = /usr/bin/gedit
launcher_icon_gedit = /usr/share/icons/hicolor/scalable/apps/org.gnome.gedit.svg
prehonor commented 1 year ago

Interesting. My wf-shell.ini has this pair of lines for gedit which work:

launcher_cmd_gedit = /usr/bin/gedit
launcher_icon_gedit = /usr/share/icons/hicolor/scalable/apps/org.gnome.gedit.svg

are you sure your svg file is really a svg file not file end with ".svg"?

allaboutmikey commented 1 year ago

Pretty sure...

$ file /usr/share/icons/hicolor/scalable/apps/org.gnome.gedit.svg /usr/share/icons/hicolor/scalable/apps/org.gnome.gedit.svg: SVG Scalable Vector Graphics image

trigg commented 2 months ago

Tested and working fine for SVG custom mappings in current git