bilelmoussaoui / Hardcode-Tray

Fixes Hardcoded tray icons in Linux
Other
863 stars 63 forks source link

Inkscape's "--file / -f" Option Has been Dropped #672

Open UM-Li opened 3 years ago

UM-Li commented 3 years ago

Inkscape 1.0.1 has dropped the -f option from its command-line utilities. Now if run with an -f option, which modules/svg/inkscape.py currently uses, inkscape will return an unknown option error and exit.

This error causes the icon conversion to fail, but is not reflected in the output of hardcode-tray.

Link to the Inkscape Wiki

$ inkscape --version
Inkscape 1.0.1 (3bc2e813f5, 2020-09-07)
    Pango version: 1.48.0

$ sudo -E hardcode-tray --apply --only tutanota-desktop
[sudo] Password:
Welcome to Hardcode-Tray!
Hardcode-Tray replaces some icons on the binary files of some applications. 
Please close all the running applications before running Hardcode-Tray script.
Desktop Environment: Kde
Scaling Factor: 1
Icon Size: 22
Icon Theme: Papirus
Conversion Tool: Inkscape
To Do: Tutanota-Desktop
Applying now..

Tutanota Desktop    [####################################] 1/1 100.0% 0.09s
Took 0.09s to finish the tasks

Done, Thank you for using the Hardcode-Tray fixer!

(By this time the icon was not actually replaced.)

$ sudo -E inkscape -z -f /usr/share/icons/Papirus/22x22/panel/tutanota-desktop-tray.svg -e /opt/tutanota-desktop/resources/icons/logo-solo-red.png
[sudo] Password:
Warning: Option --without-gui= is deprecated
Unknown option -f

(Failed again.)

UM-Li commented 3 years ago

It seems that the -e option is dropped too.


$ sudo -E inkscape /usr/share/icons/Papirus/22x22/panel/tutanota-desktop-tray.svg -e /opt/tutanota-desktop/resources/icons/logo-solo-red.png
Unknown option -e
varlesh commented 3 years ago

use sudo -E hardcode-tray -ct RSVGConvert

UM-Li commented 3 years ago

Yes, RSVGConvert works with no problem.