Unable to delete "save" desktop icon [SOLVED]

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Unable to delete "save" desktop icon [SOLVED]

Post by JASpup »

How do we prevent /usr/sbin/save2flash from loading on the desktop?

It's not in the Boot Manager.

The risk of accidentally saving is too high, so I like to run it from a prompt.

When I delete it and save the pupsave, it's there next boot.

Last edited by JASpup on Thu Sep 02, 2021 11:18 pm, edited 1 time in total.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
PipzDex
Posts: 183
Joined: Sun Jul 12, 2020 11:16 pm
Location: Mexico
Has thanked: 59 times
Been thanked: 75 times

Re: Unable to delete "save" desktop icon

Post by PipzDex »

JASpup wrote: Wed Apr 28, 2021 11:57 pm

How do we prevent /usr/sbin/save2flash from loading on the desktop?

It's not in the Boot Manager.

The risk of accidentally saving is too high, so I like to run it from a prompt.

When I delete it and save the pupsave, it's there next boot.

Hi @JASpup

Remember that when you use puppy from a usb memory, this creates an icon so that you are saving the session whenever you want, even if you want to eliminate this option it is not possible since you are using puppy under any of the following parameters

1.- your save file is savepup.xfs (X means 2,3,4)
2.- your usb is formatted as fat32

the only way to "remove" the icon you mention, you would have to follow these steps

Create USB with Grub4dos

In this way you create a usb that does not need to be saving session button for two specific reasons

1.- the save file is savefolder
2.- the puppy installation works as an external hard drive, not usb ...

Regarding the type of USB format, I usually use ext4 although they also recommend ext3, I don't know what the difference is but testing will know what it is ...

I hope this answers your question

Pentium (R) 2.20GHz I RAM: 8.0 GB I F96-CE_5 I Kernel 6.6.8-64oz-ao I Glibc: 2.31 I 1600x900 Px

My Puppy Stuff and more

User avatar
bigpup
Moderator
Posts: 6836
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 874 times
Been thanked: 1472 times

Re: Unable to delete "save" desktop icon

Post by bigpup »

This may work, but you do not tell us what exact Puppy version you are using.! :roll:

go to /etc/rc.d/rc.sysinit and edit lines 714-732 by simply commenting them out. These are the lines:

Code: Select all

#echo "MISC. DESKTOP STUFF"
#if [ "$PUPMODE" = "77" ];then #77=multisession cd/dvd.
# if [ "`cat /root/Choices/ROX-Filer/PuppyPin | grep "savesession"`" = "" ];then
#  echo '<icon x="768" y="128" label="save">/usr/sbin/savesession-dvd</icon>' >> /root/Choices/ROX-Filer/PuppyPin
#  grep -v '/pinboard' /root/Choices/ROX-Filer/PuppyPin  > /tmp/PuppyPin-CPY
#  cp -fv /tmp/PuppyPin-CPY /root/Choices/ROX-Filer/PuppyPin
#  echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin
# fi
#fi

#save button on desktop when booted from flash drive...
#if [ $PUPMODE -eq 3 -o $PUPMODE -eq 7 -o $PUPMODE -eq 13 ];then #pup_rw is tmpfs.
# if [ "`cat /root/Choices/ROX-Filer/PuppyPin | grep "save2flash"`" = "" ];then
#  echo '<icon x="768" y="128" label="save">/usr/sbin/save2flash</icon>' >> /root/Choices/ROX-Filer/PuppyPin
#  grep -v '/pinboard' /root/Choices/ROX-Filer/PuppyPin  > /tmp/PuppyPin-CPY
#  cp -fv /tmp/PuppyPin-CPY /root/Choices/ROX-Filer/PuppyPin
#  echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin
# fi
#fi

Well, shutdown or reboot and save this change, so it is now part of this file.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Unable to delete "save" desktop icon

Post by JASpup »

I will study both of your posts.

To me the big picture is that particular icon is hardwired into a frugal install and is designed to persist despite normal attempts to remove it. The function itself is critical, but that launcher is not so important.

X-series (XFCE) even has a pupsave in the Exit menu, the same way we can restart jwm or the graphical server.

Manually running the save application from terminal works and is a lot more comfortable.

The save icon looks neat but I don't want it.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
Marv
Posts: 433
Joined: Fri Dec 20, 2019 3:09 am
Has thanked: 201 times
Been thanked: 116 times

Re: Unable to delete "save" desktop icon

Post by Marv »

JASpup wrote: Thu Apr 29, 2021 4:19 am

To me the big picture is that particular icon is hardwired into a frugal install and is designed to persist despite normal attempts to remove it. The function itself is critical, but that launcher is not so important.

I agree completely. I modify the main menu so save2flash is a line item at the bottom of the menu and in LXDE (all I'm running at the moment) rather than carry a modified rc.sysinit I just add the line

Code: Select all

rm -f /root/Desktop/save2flash.desktop

either to the LXDE startup file in /root/Startup in the slackware derivs or to a little script fix_defaults, also in /root/Startup, that I use in my admittedly odd fossapup64 install to swap some custom scripts in from the ydrv. A kludge but gets the little bugger off the desktop simply.

My pups: LxPupSc64 and Voidpup64 with LXDE ydrv & synaptics touchpad drivers, both using savefiles. Ydrv based NoblePup64 (JWM & LXDE), Bookworm64 & Fossapup64-mid/mini (LXDE/PCManFM). No savefiles, no fdrvs there. :thumbup:

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: Unable to delete "save" desktop icon

Post by JASpup »

Marv wrote: Thu Apr 29, 2021 5:10 am

I agree completely. I modify the main menu so save2flash is a line item at the bottom of the menu and in LXDE (all I'm running at the moment) rather than carry a modified rc.sysinit I just add the line

Code: Select all

rm -f /root/Desktop/save2flash.desktop

either to the LXDE startup file in /root/Startup in the slackware derivs or to a little script fix_defaults, also in /root/Startup, that I use in my admittedly odd fossapup64 install to swap some custom scripts in from the ydrv. A kludge but gets the little bugger off the desktop simply.

Hmmm. I've been in LXDE a bit recently because it co-exists with JWM (unlike any XFCE I've ran).

The XFCE glory is the save is actually in the Exit menu.

With choice I'd take menu over icon, but if I can't get it off the desktop I wouldn't need a second route.

My ~/root/Desktop is empty, perhaps the same problem I'm having with palemoon?: viewtopic.php?p=24003#p24003

(The only SFS loaded at the moment is Firefox Light.)

The startup trick might work too; thanks for the suggestion.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

Post Reply

Return to “Users”