Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Mar 2019, 04:44
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
(Solved) Changing Desktop Icons at boot
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Sun 09 Dec 2018, 19:40    Post subject:  (Solved) Changing Desktop Icons at boot  

Hi.

I want to change the Desktop Icons at boot, so the Desktop will appear with my preferred icon setup.

I know, there's icon_switcher_cli.

Code:
root# icon_switcher_cli --help

Usage: icon_switcher [OPTION]

Options
  -a THEME    Activate theme
  -h          Show this help message
  -u          Update desktop
  -sysroot R  Set system root (use with -a THEME)
root#


So, I'm trying:
Code:
icon_switcher_cli -a $MYTHEME


This worked so far, except for the drive icons.

The Icon Switcher program uses program pngoverlay as back end to create the drive icons (normal, mounted, boot).
But pngoverlay doesn't seem to work at boot. It seems to need X running, as it complains in boot console: Could not open Display (or similar). Resulting in drives without my nice icons (the ugly looking default one is shown instead).

Is there a version of pngoverlay that would work properly without X running (32bit & 64bit)?

Or is there any chance to achieve my goal in a different way?

Thanks.

_________________
RSH

Beware of the Dog ähem nic007! Wink

Last edited by ITSMERSH on Tue 11 Dec 2018, 22:02; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1805
Location: Japan

PostPosted: Sun 09 Dec 2018, 22:31    Post subject: Re: Changing Desktop Icons at boot  

ITSMERSH wrote:
Is there a version of pngoverlay that would work properly without X running (32bit & 64bit)?.

Maybe pngoverlay.sh?
Quote:
# Barry Kauler 2011 GPL3 (/usr/share/doc/legal)
#pngoverlay.sh is an alternative to pngoverlay written by vovchik (in BaCon)
# (vovchik's pngoverlay requires X to be running, which may be a disadvantage)
#requires netpbm svn rev 1543 or later, with pamcomp -mixtransparency
#requires three params, 1st and 2nd must exist:
# bottom-image top-image output-image
#overlays the two images, with common areas of transparency in output image.
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Sun 09 Dec 2018, 23:55    Post subject:  

Hi MochiMoppel.

Thanks for the reply.

Pngoverlay.sh is installed in BionicPup64 and I tried this already (should have mentioned it). After changing pngoverlay to pngoverlay.sh in icon_switcher it complained about missing pngtopam.

I suspect that's why icon_switcher still uses pngoverlay instead of pngoverlay.sh.

Package Manager could not find pngtopam. Web search failed so far I was able to search for it...

After a while I found out pngtopam being a single program of the netbpm package. Netbpm package is not available via repository, so I downloaded the source code trying to compile.

It ended up with two errors:

- need a PNG library older than 1.5
- or a newer source code at least 10.55

So I downloaded the most recent source code to be found and it compiled successfully at first attempt.

But there's no success, as pamrgbatopng is now complaining:

- Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.

So, I'm out of options and ideas by now.

Edit:

I found a .deb package. Installed, but noting changed. The pamrgbatopng is still complaining, even though a new version was installed with that .deb package.

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
ITSMERSH

Joined: 02 May 2018
Posts: 911

PostPosted: Tue 11 Dec 2018, 22:02    Post subject:  

Hi.

Just as a last note:

- I solved this by modifying icon_switcher script. Disabled the part where the icon gets its small close-box on top-right corner.

Since my preferred icon sets have drive icons that are different in their view (normal, mounted, mounted-boot), I don't need the close-box as indicator.

Also I did use the close-box very rarely to unmount a drive, as it's hard to hit by such speedy mouse pointers in Puppy.

So, I can live without that function...

_________________
RSH

Beware of the Dog ähem nic007! Wink
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0313s ][ Queries: 12 (0.0057s) ][ GZIP on ]