xeyownt / xseticon

xseticon from Paul Evans -- http://www.leonerd.org.uk/
GNU General Public License v2.0
32 stars 11 forks source link

does not work under Debian 10.2 #7

Open allefeld opened 4 years ago

allefeld commented 4 years ago

xseticon installed from snap package on Debian 10.2

I'm trying to set the icon for a Chrome window running JupyterLab

xwininfo reports Window id: 0x460015a "JupyterLab"

$ xseticon -id 0x460015a /tmp/jupyter.png 
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Aborted at function fopen()
$ xseticon -name "JupyterLab" /tmp/jupyter.png 
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
xseticon: error: No window with name JupyterLab exists!

The specified png file does exist.

4000degrees commented 3 years ago

This is because snap does not give access to file system. So xseticon can't see files outside it's container, unless you connect some of the provided interfaces.

cam8001 commented 3 months ago

For people finding this later, first, make sure the window of the app you want to change the icon for is visible, then do one of the following:

  1. Copy the icon you want to use somewhere in your home directory. Then run xseticon ~/<path-to-icon>. A crosshair will appear, click on window of your app, you should be done.
  2. Run sudo snap connect xseticon:removable-media, then try the same as above, but the file can be anywhere (this didn't work for me though). Deets: https://snapcraft.io/xseticon