in reply to resolve current theme icon path

what perl do with
use FreeDesktop::Icons; my $iconlib = new FreeDesktop::Icons; $iconlib->theme('WhiteSur-red'); $iconlib->size('16'); my $imagefile = $iconlib->get('xfsm-shutdown'); print $imagefile;
it's slow and inadequate

That module was first uploaded to CPAN in May. The author probably published it as soon as it met his needs. If you ask nicely, maybe he could help add a feature to do what you need, too.

gi.require_version('Gtk', '3.0') from gi.repository import Gtk
If Python solves this with the Gtk 3 library, did you look at Perl's Gtk3 library?

I just need to embrace python
Did you want help from perl people, or just irritate us?

Many perl module just fill up CPAN, and help little.
This is true, and unfortunately it will never get better with the current design of CPAN where anyone can upload any module of any quality. One way to improve it is to find a module that does almost what you need, and politely send the author a request to add more features. You could even use Devel::NYTProf to find out why the module is slow, and send the author a patch to make it faster.

Replies are listed 'Best First'.
Re^2: resolve current theme icon path
by vincentaxhe (Scribe) on Sep 02, 2024 at 06:40 UTC
    I'm frustrated on perl pdf module once Re^6: use PDF::API2 to add pdf bookmark, perl should not fail me on resolve icon path. Gtk3::Image seems promising, I do some search and check on 'Gtk' and icon theme related and missed Gtk3. I love perl, he has the ability to enpower individual, I'm learning Raku too.
      perl should not fail me on resolve icon path

      You mean CPAN. Perl can do anything you want, if you write out the full program. You want someone else to solve the problem and post a complete module for you, for all tasks you can think of? There are many many things that Perl does not have a CPAN module for, and yes, Python has more modules to solve the latest problems because Python has more people.

      We at perlmonks use perl because we like the language, not because it has the most problems already solved in a module.