Tabbed Pmount
pmount3_1
Dear Dougal and Barry,
It works like a charm now on my system (version 3.1). Thanks to both of you for this excellent utility. One perhaps trivial question, though: why use yaf-script now when that same function was accomplished by gtkmessage in previous versions? yaf-script is uglier than gtxmessage (which can display antialiased fonts whereas yaf dislplays ugly X fonts) but it does have a nice clock function if you are waiting for some other process to finish. Just wondering...
With kind regards,
vovchik
It works like a charm now on my system (version 3.1). Thanks to both of you for this excellent utility. One perhaps trivial question, though: why use yaf-script now when that same function was accomplished by gtkmessage in previous versions? yaf-script is uglier than gtxmessage (which can display antialiased fonts whereas yaf dislplays ugly X fonts) but it does have a nice clock function if you are waiting for some other process to finish. Just wondering...
With kind regards,
vovchik
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: pmount3_1
That is a matter for philosophical debate... I find yaf-splash pretty ugly, but apparently Barry prefers it.vovchik wrote:One perhaps trivial question, though: why use yaf-script now when that same function was accomplished by gtkmessage in previous versions?
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Great work!!
All it needed was this one line in probepart at line 63:
just before this comment:
#for compatibility with old probepart from antonio gallo...
All it needed was this one line in probepart at line 63:
Code: Select all
[ "$FSTYPE" = "unknown" ] && if [ "`disktype /dev/$DEVICE | grep 'HFS Plus'`" = "HFS Plus file system" ];then
FSTYPE="hfsplus"
fi
#for compatibility with old probepart from antonio gallo...
- Attachments
-
- pmount-hfsplus-small.png
- pmount mounting hfsplus filesystem for the first time!
- (24.28 KiB) Downloaded 838 times
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Note, the probepart-bk4 posted earlier by me is way out of date. The latest probepart and probedisk are in 2.17alpha. Okay, attached here too:
- Attachments
-
- put-into-sbin-dir.tar.gz
- (2.86 KiB) Downloaded 447 times
thanks Barry. you saved me a couple reboots. my wireless doesn't work (same as kirk's wife's laptop) and i have to keep reboot 2.17 anytime i want to test and then booting back into 2.16 to post, anyway...
same results. just throw that code in (it's about line 65). I'll attach it.
btw, mut sees it when mounted.
same results. just throw that code in (it's about line 65). I'll attach it.
btw, mut sees it when mounted.
- Attachments
-
- mut-hfsplus-small.png
- (19.95 KiB) Downloaded 863 times
-
- probepart.gz
- (1.38 KiB) Downloaded 468 times
Barry, any thoughts on making puppy support hfsplus at boot up and shutdown?
that would really help puppy "Rule the Day"!
intel mac users would dig it also.
the module is pretty small for initrd, ~80k I think from memory.
probepart is used at shutdown to find the parts isn't it?
i can't remember a thing about how the boot up script finds them.
that would really help puppy "Rule the Day"!
intel mac users would dig it also.
the module is pretty small for initrd, ~80k I think from memory.
probepart is used at shutdown to find the parts isn't it?
i can't remember a thing about how the boot up script finds them.
Pmount3
Dougal, I installed pmount3.
whenever I want to mount CD driver, I have to change the tab from hda to cdroms then click on the CD icon. That's okay. But as you know pmount refreshes once you mount something and this time it again opens up in hda tab. If I want to (and I usually do) view the contents of the cdrom I have to change the tab once again. and then click on the Rox button.
can we change this? If I mount cdrom it open in the cdrom tab once it refreshes?
Taha Selim
whenever I want to mount CD driver, I have to change the tab from hda to cdroms then click on the CD icon. That's okay. But as you know pmount refreshes once you mount something and this time it again opens up in hda tab. If I want to (and I usually do) view the contents of the cdrom I have to change the tab once again. and then click on the Rox button.
can we change this? If I mount cdrom it open in the cdrom tab once it refreshes?
Taha Selim
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Ideally, Jesses /usr/lib/mut/bin/guess_fstype should be extended to recognise hfsplus filesystems.John Doe wrote:Barry, any thoughts on making puppy support hfsplus at boot up and shutdown?
that would really help puppy "Rule the Day"!
intel mac users would dig it also.
the module is pretty small for initrd, ~80k I think from memory.
probepart is used at shutdown to find the parts isn't it?
i can't remember a thing about how the boot up script finds them.
One problem with your modification to probepart is that 'disktype' will run everytime, for all partitions that are 'unknown' -- there could be a few of these. disktype is a bit slow.
What about 'fdisk -l'? -- does it identify a hfsplus f.s.?
-- the problem is, fdisk identifies the partition type, but that doesn't mean the partition has the correct f.s. in it.
The initial ramdisk has its own slightly modified version of probepart, called probepart_init. See /initrd/sbin.
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: Pmount3
Yes, I thought of that when I first implemented the tabs.tahaselim wrote:pmount refreshes once you mount something and this time it again opens up in hda tab. If I want to (and I usually do) view the contents of the cdrom I have to change the tab once again. and then click on the Rox button.
I don't know of a way to have a certain tab selected when you start, so I can't change that.
As for the Rox button, Pmount used to not have that, instead opening Rox automatically when the partition was mounted. This seems to have changed at some stage...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
I'll have another look at the gtkdialog examples, but as far as I know there's no option of a default tab.tahaselim wrote:there Must be a way of defining a default tab, recording the tab number as the default while mounting a partition would solve the issue.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Re: Pmount3
Yep. I requested that change way back, so that you didn't have to umount/mount to get a Rox window open in the event you closed it while the partition was still mounted. This was considered a usability feature for Window$ refugees who had enough trouble understanding the whole mount/umount process, much less finding the mounted partition contents in Rox.Dougal wrote:As for the Rox button, Pmount used to not have that, instead opening Rox automatically when the partition was mounted. This seems to have changed at some stage...
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
- Dougal
- Posts: 2502
- Joined: Wed 19 Oct 2005, 13:06
- Location: Hell more grotesque than any medieval woodcut
Re: Pmount3
But that was one stage back, when there was a Rob button and the window opened automatically, wasn't it?WhoDo wrote:I requested that change way back, so that you didn't have to umount/mount to get a Rox window open in the event you closed it while the partition was still mounted. This was considered a usability feature for Window$ refugees who had enough trouble understanding the whole mount/umount process, much less finding the mounted partition contents in Rox.
The problem now is that rox only opens from that button.
I looked again and there doesn't seem to be a way of selecting a tab in gtkdialog.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Some say your nose
Some say your toes
But I think it's your mind
Re: Pmount3
Dougal what do you think if we gather every secondary storage device in the first tab and show HD's in the second or third tab.Dougal wrote: But that was one stage back, when there was a Rob button and the window opened automatically, wasn't it?
The problem now is that rox only opens from that button.
I looked again and there doesn't seem to be a way of selecting a tab in gtkdialog.
First tab will include : Cdrom-Dvd, and USB (maybe Floppy, I doubt if somebody still uses one)
Second Tab : HDD drives
etc.
I know this time mounting HDD's will be a problem but its more likely that a user would like to mount a CD or a flash disk and view the contents than mounting HDD every now and then.
Taha Selim
It is possible to select which tab to show, with changing the content of the left (first) tab. You have to make a dynamic gtkdialog-code, where each tab-code is a variable or textfile. Then do a loop before export gtkdialog, which define which device (gtkdialog-code) should be loaded first.
Code: Select all
DEVICES="hda hdc sda" #or whatever
#...
echo -e "\c" > /tmp/pmount-gtkdialog
for I in $DEVICES; do
echo "<vbox>...gtkdialog-code...</vbox>" >> /tmp/pmount-gtkdialog
done
GTK_CODE=`cat /tmp/pmount-gtkdialog`
Some more flesh on the bone.
Get the active device first in the devicelist, and then the earlier described loop:
echo "$TABS
echo "$TABS_CODE":
Sigmund
Get the active device first in the devicelist, and then the earlier described loop:
Code: Select all
#! /bin/bash
ACTIVE_DEVICE="sda" #or whatever
DEVICES=`probedisk | cut -d "|" -f 1 | cut -d "/" -f 3 | sed -e "s/$ACTIVE_DEVICE//g"`
#...
echo -e "\c" > /tmp/pmount-tabs
echo -e "\c" > /tmp/pmount-tabs_code
for I in `echo "$ACTIVE_DEVICE $DEVICES"`; do
echo "|$I" >> /tmp/pmount-tabs
echo "<vbox>$I</vbox>" >> /tmp/pmount-tabs_code
done
TABS=`cat /tmp/pmount-tabs`
TABS_CODE=`cat /tmp/pmount-tabs_code`
Code: Select all
sda| hdc| hda| sdb| scd0|
Code: Select all
<vbox>sda</vbox>
<vbox>hdc</vbox>
<vbox>hda</vbox>
<vbox>sdb</vbox>
<vbox>scd0</vbox>
This is just a comment on the state of "GTKdialog".
From the creator of GTKdialog:
Most of the other GUI builder "languages" I've seen are rather heavy weight,
or are part of a complete programming language (many fit this profile).
It'd be really nice to have a replacement for GTKdialog that's "consistant".
It'd be able to position the control objects on the window.
And it'd have a common syntax: "VisualBasic" style.
So command syntax would look like this:
list.var = FILES
list.in = /path/file
list.width = 200
list.height = 300
button.label = Do SomeThing
button.icon = pix.png
button.action = ./appExe (function) . . .
button.refresh = $FILES
I know I'm just pipe dreaming here, but we can dream...
From the creator of GTKdialog:
I agree... Unfortunately it's the only small Linux GUI builder I've seen.GTKdialog is a very bad program that I wrote.
Most of the other GUI builder "languages" I've seen are rather heavy weight,
or are part of a complete programming language (many fit this profile).
It'd be really nice to have a replacement for GTKdialog that's "consistant".
It'd be able to position the control objects on the window.
And it'd have a common syntax: "VisualBasic" style.
So command syntax would look like this:
list.var = FILES
list.in = /path/file
list.width = 200
list.height = 300
button.label = Do SomeThing
button.icon = pix.png
button.action = ./appExe (function) . . .
button.refresh = $FILES
I know I'm just pipe dreaming here, but we can dream...
Re: Pmount3
Ah, I see. A Rox window opens on mounting, and the Rox button is only there after mounting, in case you closed that window and needed to reopen it without mounting/umounting. That is still the case in the untabbed Pmount on my 2.16 system. The change you mention must have happened after that.Dougal wrote:But that was one stage back, when there was a Rob button and the window opened automatically, wasn't it?
The problem now is that rox only opens from that button.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Gtkdialog does allow a default radiobutton, but I don't know about anything else.
I'm not happy with a tabbed interface that, after mounting a partition, then hides the partition under another tab. That makes extra work, have to click the tab to bring it back into view.
The reason I changed it so that ROX does not immediately open, is someone requested it should be that way for consistency with MUT. I don't recall who or when, I just had the note in my notebook. And I agreed that MUT and Pmount should behave in a consistent fashion.
As to rearranging the order of tabs so that the last-used one is at the left,
I don't like that. It's moving in the direction of Microsoft's auto-adjusting menus, which I hate. The brain works by recognising patterns.
I'm not happy with a tabbed interface that, after mounting a partition, then hides the partition under another tab. That makes extra work, have to click the tab to bring it back into view.
The reason I changed it so that ROX does not immediately open, is someone requested it should be that way for consistency with MUT. I don't recall who or when, I just had the note in my notebook. And I agreed that MUT and Pmount should behave in a consistent fashion.
As to rearranging the order of tabs so that the last-used one is at the left,
I don't like that. It's moving in the direction of Microsoft's auto-adjusting menus, which I hate. The brain works by recognising patterns.