Strangest thing with the Trash Can...

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
Flash858
Posts: 108
Joined: Wed 25 Jun 2008, 16:21
Location: Chandler, Arizona
Contact:

Strangest thing with the Trash Can...

#1 Post by Flash858 »

I have no idea how this happened, but can anyone tell me how to restore the proper trash can to the desktop? Mine turned into a useless folder, and I am afraid to delete it for fear of breaking the system, which is otherwise just as I want it.

It does not exist in /usr/share/applications.

Thanks in advance!

Xenialpup64 version 7.5 BTW...
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... :D

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#2 Post by matchpoint »

Hey Flash, shouldn't it be /usr/local/apps/Trash? Does [url=file:///usr/local/apps/Trash/Help/help.html]this[/url] open its help file?

If you're running frugal you may be able to bring in a new copy from /initrd/pup_ro2/usr/local/apps/Trash.

User avatar
Flash858
Posts: 108
Joined: Wed 25 Jun 2008, 16:21
Location: Chandler, Arizona
Contact:

#3 Post by Flash858 »

Thanks Matchpoint, the frugal advice (it's a frugal install) helped. While the icon had to be set, it now does not change if I change icon themes, nor if it is empty/full, but I can live with that.

Thanks again!
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... :D

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#4 Post by matchpoint »

So it was a theme? I didn't mention that but I suspected so. Great!

User avatar
Flash858
Posts: 108
Joined: Wed 25 Jun 2008, 16:21
Location: Chandler, Arizona
Contact:

#5 Post by Flash858 »

No, it wasn't, it was corruption. Not sure how it happened. Looks like I need to update my signature here...lol been a while I guess...
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... :D

matchpoint
Posts: 168
Joined: Fri 26 Jan 2018, 20:54

#6 Post by matchpoint »

To be precise, yeah.

Let me ask, which file system type is your frugal on?

User avatar
Flash858
Posts: 108
Joined: Wed 25 Jun 2008, 16:21
Location: Chandler, Arizona
Contact:

#7 Post by Flash858 »

The Frugal install lives in it's own folder of the home folder (separate partition) of my Ubuntu install, so ext4...
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... :D

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#8 Post by Mike Walsh »

Just an an addendum to this, despite being a 'trashcan' icon on the desktop, the 'Trash' is still a directory anyway...as evidenced by opening /usr/local/apps/Trash, and right-clicking, then ->Properties.

It tells you it's a folder.


Mike. :wink:

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#9 Post by bigpup »

The Puppy Trash is actually a Rox Application directory.
It is a special way to package and run a program.
An application directory is a directory which can be run as an application. It contains all the resources of an application — source code, binaries, documentation and so on.
They usually contain these files.
The following files are treated as special by ROX-Filer:

`AppRun' is executed when you click on the directory — make sure it is executable (use the Permissions box)!

`.DirIcon' is the image used to represent the directory (this works even if there is no `AppRun').

`Help' is the directory to be opened when you choose Help from the File menu.

`AppInfo.xml' contains extra information about an application.
Attachments
capture27401.png
(22.33 KiB) Downloaded 62 times
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Hello, Flash858.

If you fear that the contents of any folder in your Puppy have been somehow corrupted,
the first thing to do is to boot your Pup in a pristine state without any pupsave folder or file,
and run fsck on the suspected pupsave. That should realign the i-nodes, etc., plus correct
any file system error.

Typical example of how to do this:

Code: Select all

fsck.ext2 -p -f -v <filename of your pupsave>
If your pupsave has an ext3 or ext4 extension, edit the above command accordingly.

After fsck has finished its work on your pupsave, reboot your Pup as usual.

Then open a terminal and type:

Code: Select all

rm -fr /usr/local/apps/Trash
rmdir /usr/local/apps/Trash
cp /initrd/pup_ro2/usr/local/apps/Trash /usr/local/apps
OR
do the equivalent through ROX: in console type

Code: Select all

rox /usr/local/apps/Trash /initrd/pup_ro2/usr/local/apps/Trash
(i.e., open dir. /usr/local/apps/Trash; and
open another ROX window at directory /initrd/pup_ro2/usr/local/apps/Trash)

Erase the contents of /usr/local/apps/Trash (highlight the whole contents, then right-click
over the highlighted part, then click on "erase" or "remove").

Highlight the contents of /initrd/pup_ro2/usr/local/apps/Trash and drag it to
/usr/local/apps/Trash. When prompted, answer "copy".

That's it. You have refreshed your Trash folder and its function should work as expected.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
Flash858
Posts: 108
Joined: Wed 25 Jun 2008, 16:21
Location: Chandler, Arizona
Contact:

#11 Post by Flash858 »

Hey thanks for the post musher, but I'm an "old dog", so I knew about the save file. I just had my install *perfect* so I just did not want to have to reconfigure/reinstall everything.

I'll try the trash refresh tonight - thanks for the tip!

At some point, I am going to make a weekend project out of creating bash scripts that customize my Puppy and Ubuntu (now Mate) installs after a clean install.

That should kill a weekend...lol.

:lol:
Currently happily running Puppy Xenial 7.5 64-bit , and Ubuntu Mate 18.04 ... :D

Post Reply