Partitions on the desktop: how to hide the windows' ones (Solved)

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
Feek
Posts: 398
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 54 times
Been thanked: 90 times

Partitions on the desktop: how to hide the windows' ones (Solved)

Post by Feek »

Hi,
I use Fossapup64. Is there a way to have just some wanted partitions on the desktop?

In Fatdog 811 I just type the unwanted partitions into the special line in event manager and they will not appear on the desktop but will still be accessible via Pmount.

Can a similar effect be achieved in Fossapup64?

Last edited by Feek on Sun Sep 12, 2021 6:41 pm, edited 1 time in total.
User avatar
GMBudwrench
Posts: 98
Joined: Tue Feb 23, 2021 3:19 am
Has thanked: 14 times
Been thanked: 22 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by GMBudwrench »

I'm in Bionic, but it should be the same with FossaPup, here:

Menu>Desktop>JWMDesktopManager>Icon Layout.

HP G71 Wins10 64 bit, 2.2ghz 320gb hdd, Bionicpup64 on a WD 500gb portable HDD.

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: Partitions on the desktop: how to hide the windows' ones

Post by JASpup »

Desktop partition implementation varies by system configuration.

I generally have two strategies in JWM. Partitions are unchecked in the Puppy Event Manager, and:

  • partitions are a folder within a folder on the desktop.

  • partitions are launchers dragged from rox.

This is my 32-Tahr JWM. Notice below where partitions are normally there are none.

Of course you can always remove individual partitions, but mine always seem to get reloaded.

Attachments
limit-partitions-jwm.png
limit-partitions-jwm.png (10.8 KiB) Viewed 575 times

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

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: Partitions on the desktop: how to hide the windows' ones

Post by JASpup »

You can also use an alt-file manager to manage partitions. This is Thunar in JWM.

L1-Linux is one of six partitions. This is the same boot as my last post with none on the desktop.

Attachments
alt-fm-partition.png
alt-fm-partition.png (14.87 KiB) Viewed 574 times

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

Feek
Posts: 398
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 54 times
Been thanked: 90 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by Feek »

GMBudwrench wrote: Sun Sep 12, 2021 9:32 am

I'm in Bionic, but it should be the same with FossaPup, here:

Menu>Desktop>JWMDesktopManager>Icon Layout.

Thanks, you're right but there are only 3 predefined choices there:
1. one drive icon
2. only root drive icons
3. an icon for EACH partition

I would like to have icons for partitions on the desktop but not for ALL, especially not for win7 partitions.
I'm using one drive icon right now which requires more clicking to access a specific partition.

Feek
Posts: 398
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 54 times
Been thanked: 90 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by Feek »

@JASpup , I use rox filer only (never used Thunar).

I've tested your idea (hopefully I understood it well):

I've mounted sda5, then navigated to /mnt and dragged the sda5 folder to the desktop.
This works only when sda5 is mounted. If it's not mounted, only empty folder will open by clicking on it.

My wish is to have a "really true partition icons" on the desktop (unmounted after boot). It should mount a partition and open its rox window after clicking on it and it should close and unmount after next clicking on it.

HerrBert
Posts: 357
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 126 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by HerrBert »

Feek wrote: Sun Sep 12, 2021 1:44 pm

....
My wish is to have a "really true partition icons" on the desktop (unmounted after boot). It should mount a partition and open its rox window after clicking on it and it should close and unmount after next clicking on it.

Puppy does not know, which partition your Windows is installed at or which partition you may want not to appear on the desktop.

If you know how to edit scripts, here's my coarse attempt to prevent adding a specific drive icon to desktop:
Open /usr/local/pup_event/frontend_rox_funcs in texteditor and edit line 335 from

Code: Select all

				*) case "$FSTYPE" in swap|none) continue ;; esac ;;

to

Code: Select all

				*) case "$FSTYPE" in swap|none) continue ;; esac
				[ "$(grep -w "${ONEDRVNAME}" /root/.config/blacklist.parts)" ] && continue ;;

Create a plain textfile with only the partitionname to 'hide' (ex: sda1 sdb3 ...) and save it as /root/.config/blacklist.parts
Launch Menu -> System -> Event manager and choose tab 'ROX Icons', check 'Refresh / Realign existing icons' and press 'Ok'

The idea is, it does just the same like the case "$FSTYPE" in swap|none - it simply skips the creation of the desktop icon if it finds the partitionname "${ONEDRVNAME}" in the blacklist file.

Feek
Posts: 398
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 54 times
Been thanked: 90 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by Feek »

@HerrBert ,
that's exactly what I meant. It works great.

Thank you very much for the advice :thumbup: .

Attachments
parts.png
parts.png (128.55 KiB) Viewed 512 times
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: Partitions on the desktop: how to hide the windows' ones

Post by JASpup »

Feek wrote: Sun Sep 12, 2021 1:44 pm

I've mounted sda5, then navigated to /mnt and dragged the sda5 folder to the desktop.
This works only when sda5 is mounted. If it's not mounted, only empty folder will open by clicking on it.

You've stumbled upon an inconvenience.

You could put this in a little script:

Code: Select all

#!/bin/sh
mkdir /mnt/sda5
mount /dev/sda5 /mnt/sda5

If you click on it first, sda5 will open mounted. It needs to be available out of sda5, obviously.

rox can unmount partitions, but they have to be mounted first.
thunar can mount or unmount partitions, but it requires dependencies.

What I do now without thunar is:

  • Load all JWM partitions at boot

  • Click on the partition(s) I want to use that session

  • Go into eventmanager and remove all partitions from desktop

  • Use mounted partitions from rox

That is why the normal space for partitions is empty in my graphic (i.e., why I didn't put "puppy partition" there).

If I need a new partition, I'll repeat the process.

My wish is to have a "really true partition icons" on the desktop (unmounted after boot). It should mount a partition and open its rox window after clicking on it and it should close and unmount after next clicking on it.

You have a good idea, but it takes a coder's skill to accomplish advanced customizations. There still is a lot we can do just understanding how the system works.

If you can follow HerrBert's advice my hacks aren't so important. :lol:

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

Feek
Posts: 398
Joined: Sun Oct 18, 2020 8:48 am
Location: cze
Has thanked: 54 times
Been thanked: 90 times

Re: Partitions on the desktop: how to hide the windows' ones

Post by Feek »

@JASpup ,

I think I understand your way of accessing the drives/partitions. It´s similar as in Windows, where all partitions are mounted by default and are available e.g. in total commander.

I must say that when I booted puppy the first time, the partitions on the desktop were a bit confusing to me first. But later I found them very practical and effective.

JASpup wrote: Mon Sep 13, 2021 5:47 am

My wish is to have a "really true partition icons" on the desktop (unmounted after boot). It should mount a partition and open its rox window after clicking on it and it should close and unmount after next clicking on it.

You have a good idea, but it takes a coder's skill to accomplish advanced customizations. There still is a lot we can do just understanding how the system works.

If you can follow HerrBert's advice my hacks aren't so important. :lol:

It is meant in this sentence, that I want to have real icons for the partitions on the desktop, not just folders dragged from rox (as you previously suggested).

If you set in Menu -> Desktop -> JWMDesktopManager -> Icon layout „an icon for each partition“, the behaviour will be like this by default (without „coder´s skill“):
after click on a partition icon it will mount it and a rox window will open. And a small green light will appear on the partition icon which says it´s mounted.
After next click on the partition icon the rox window will close and the partition will be unmounted.
And that´s what I like on it.

Anyway I appreciate your hacks ;)

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: Partitions on the desktop: how to hide the windows' ones

Post by JASpup »

Feek wrote: Mon Sep 13, 2021 7:53 am

I think I understand your way of accessing the drives/partitions. It´s similar as in Windows, where all partitions are mounted by default and are available e.g. in total commander.

I hadn't thought of this before now, but strangely Redmond partitions can appear invisible in the gui by not assigning/removing a drive letter.

Is that the same as being unmounted? Not sure.

There are also 'hidden' partitions that Linux puts out there in the open, which is why we have these partition discussions.

On the one hand, we want the power to access them. On the other, they're hidden for a reason.

Seeing them all I can do is screw them up. Redmond expects TWO to recover the os, in addition to the third for boot.

On an old MBR format disk, that gives us one partition to play with if we don't make it extended.

I must say that when I booted puppy the first time, the partitions on the desktop were a bit confusing to me first. But later I found them very practical and effective.

Pinboard/Rox partitions are one of its best features, a rare knock being your question here. I like them too with mixed feelings, mostly related to clutter and these hacks. The image is how it beats XFCE.

If there's a way to remove individual XFCE partitions, I haven't seen it yet. It's all or nothing. "Properties" is just basic partition info: name/size/usage/location/last accessed+modified, plus Emblems and Permissions.

"Open" mounts and opens Thunar vs. "Mount" just mounting. I always remove them (just a demo here). JWM wins!

It is meant in this sentence, that I want to have real icons for the partitions on the desktop, not just folders dragged from rox (as you previously suggested).

I appreciate preference, but I also don't understand why it matters save small factors like automated arrangement & the right-click menu. Sometimes I set it up differently, but you can see the green light on manually dragged launch folders.

I would use Mr. Bert's technical advice too but it's tailored to one specific system. I'm working on generic (portable) live boots that will be customized by accessing scripts on local partitions. I can't think of a better way.

I appreciate the nod. It's obviously different being a coder and Puppy user with years experience.

Attachments
Screenshot_2021-09-14_14-30-30.png
Screenshot_2021-09-14_14-30-30.png (250.92 KiB) Viewed 411 times

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

Post Reply

Return to “Users”