pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6
This is pup-volume-monitor, a lightweight drive and volume management backend.
It works same as gvfs volume monitor, except it is quite small and doesn't have any heavy dependencies like gnome-disk-utility or hal or dbus.
It is this kind of software responsible for displaying drives in file managers and file open/save dialogs in ubuntu and others.
It is not very stable yet, report any bugs that you find.
pcmanfm 0.9x and above works well with it. So does thunar. Basically all programs that use GIO should be able to use it.
I am including binary for slacko puppy. Others see third post.
The changes will only appear in newly started applications. Restart X for changes to take effect fully.
pup-volume-monitor-0.1.15-0-i686-slacko5.5.pet
Older versions here
Desktop-drive-icons is below, second post.
It works same as gvfs volume monitor, except it is quite small and doesn't have any heavy dependencies like gnome-disk-utility or hal or dbus.
It is this kind of software responsible for displaying drives in file managers and file open/save dialogs in ubuntu and others.
It is not very stable yet, report any bugs that you find.
pcmanfm 0.9x and above works well with it. So does thunar. Basically all programs that use GIO should be able to use it.
I am including binary for slacko puppy. Others see third post.
The changes will only appear in newly started applications. Restart X for changes to take effect fully.
pup-volume-monitor-0.1.15-0-i686-slacko5.5.pet
Older versions here
Desktop-drive-icons is below, second post.
Last edited by akash_rawal on Tue 14 Jan 2014, 13:23, edited 36 times in total.
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Desktop-drive-icons
desktop-drive-icons is a workaround for file managers not supporting volume management using GIO, e.g rox. It displays the drive icons on desktop, but it draws them on its separate window so it works on all file managers. Moreover, it's configurable.
Binary for slacko puppy: desktop_drive_icons-0.0.6-0-i686-slacko5.6.0.pet
Source package: desktop_drive_icons-0.0.6.tar.gz
Older versions: http://www.dropbox.com/sh/k1hn0un11p395 ... rive-icons
Binary for slacko puppy: desktop_drive_icons-0.0.6-0-i686-slacko5.6.0.pet
Source package: desktop_drive_icons-0.0.6.tar.gz
Older versions: http://www.dropbox.com/sh/k1hn0un11p395 ... rive-icons
Last edited by akash_rawal on Tue 14 Jan 2014, 13:15, edited 10 times in total.
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
For other puppies, instructions to compile from source...
Then continue from step 4 above.
- Get devx.sfs file for your puppy, it contains necessary tools to compile programs from source.
- Get source code (http://dl.dropbox.com/u/58347439/pup-vm ... .15.tar.gz), extract the files into some directory,
- Open terminal in that directory (rox-filer shortcut: `)(pcmanfm shortcut: F4)
- Type ./configure --prefix=/usr --sysconfdir=/etc && make && make install
--sysconfdir=/etc is important, or else config files will be installed in wrong place. - Create start-pup-volume-monitor script in /etc/init.d with contents
Code: Select all
#!/bin/bash case "$1" in start) pup-volume-monitor-admin --start ;; stop) pup-volume-monitor-admin --stop ;; restart) pup-volume-monitor-admin --stop sleep 1 pup-volume-monitor-admin --start ;; *) echo "Usage: $0 {start|stop|restart}" ;; esac
- Run pup-volume-monitor-admin --start in terminal. Then you can open a suitable program, and see whether your drives are listed in file open / save dialog.
Code: Select all
svn checkout http://pup-volume-monitor.googlecode.com/svn/trunk/ pup-volume-monitor
cd pup-volume-monitor
autoreconf -fi
Last edited by akash_rawal on Tue 14 Jan 2014, 13:12, edited 21 times in total.
really great idea
this package is the one i had been trying to find for 1.5 years, and its just the one needed i feel that this should replace the puppy event manager (with a working gui front end),
well i would like to use your package in a XFCE 4.10 pet that i am currently compiling, am i free to use it.
finally i have a request i need the PCmanfm that is in you screenshot can you make it into a package for me,
well i would like to use your package in a XFCE 4.10 pet that i am currently compiling, am i free to use it.
finally i have a request i need the PCmanfm that is in you screenshot can you make it into a package for me,
a small problem
i have compiled thunar in slacko full install after installing you pet
there is a small problem
except for sda8(the drive in which i installed slacko) all the other hard drive are shown in a light colour and after i mount them by(clicking) i am redirected to the drive(/mnt/sdaX, where X is integer form 1 -11 except
but the drive icon disappears from the side plane (there are screen shots)
although removable drive do not have this prob lem
i am not sure if this is a problem of thunar as the gtk file finder does not have this problem
there is a small problem
except for sda8(the drive in which i installed slacko) all the other hard drive are shown in a light colour and after i mount them by(clicking) i am redirected to the drive(/mnt/sdaX, where X is integer form 1 -11 except
but the drive icon disappears from the side plane (there are screen shots)
although removable drive do not have this prob lem
i am not sure if this is a problem of thunar as the gtk file finder does not have this problem
- Attachments
-
- capture2515.png
- (43.57 KiB) Downloaded 9713 times
-
- capture1106.png
- (46.01 KiB) Downloaded 10470 times
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Re: a small problem
Does the problem occur only in thunar? This is quite unlikely, but thunar's volume management is a bit problematic. It has problems that no other program hasarj_pup wrote:i have compiled thunar in slacko full install after installing you pet
there is a small problem
except for sda8(the drive in which i installed slacko) all the other hard drive are shown in a light colour and after i mount them by(clicking) i am redirected to the drive(/mnt/sdaX, where X is integer form 1 -11 except
but the drive icon disappears from the side plane (there are screen shots)
although removable drive do not have this prob lem
i am not sure if this is a problem of thunar as the gtk file finder does not have this problem
Could you post output of udevadm monitor and pup-volume-monitor-admin --listen while mounting? This could be a help in debugging.
BTW pcmanfm can be found here: http://www.murga-linux.com/puppy/viewto ... 035#420035, although I had compiled it from source for myself.
[/code]
sh-4.1# pup-volume-monitor-admin --listen
Event: change; detail=mount
Device sda1:
display_name=sda1
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda1
label=(null)
fstype=ntfs
uuid=9868DEB168DE8D7E
drv_sysname=sda
mntpnt=/mnt/sda1
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda8:
display_name=sda8
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda8
label=(null)
fstype=ext4
uuid=1d0a5bb7-d2e8-4ff6-94dd-f81761649142
drv_sysname=sda
mntpnt=/mnt/sda8
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda7:
display_name=sda7
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda7
label=(null)
fstype=ext4
uuid=789457c3-57ca-4f0b-994f-d4d160cb70f0
drv_sysname=sda
mntpnt=/mnt/sda7
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda6:
display_name=sda6
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda6
label=(null)
fstype=ntfs
uuid=1298B0B398B09727
drv_sysname=sda
mntpnt=/mnt/sda6
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
[/code]
sh-4.1# pup-volume-monitor-admin --listen
Event: change; detail=mount
Device sda1:
display_name=sda1
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda1
label=(null)
fstype=ntfs
uuid=9868DEB168DE8D7E
drv_sysname=sda
mntpnt=/mnt/sda1
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda8:
display_name=sda8
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda8
label=(null)
fstype=ext4
uuid=1d0a5bb7-d2e8-4ff6-94dd-f81761649142
drv_sysname=sda
mntpnt=/mnt/sda8
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda7:
display_name=sda7
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda7
label=(null)
fstype=ext4
uuid=789457c3-57ca-4f0b-994f-d4d160cb70f0
drv_sysname=sda
mntpnt=/mnt/sda7
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
Event: change; detail=mount
Device sda6:
display_name=sda6
icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk
type=PupVolume
unix_dev=/dev/sda6
label=(null)
fstype=ntfs
uuid=1298B0B398B09727
drv_sysname=sda
mntpnt=/mnt/sda6
flags = 0 | PUP_VOLUME_IS_MOUNTABLE
[/code]
Code: Select all
sh-4.1# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1340773487.694092] add /devices/virtual/bdi/8:1-fuseblk (bdi)
UDEV [1340773487.699275] add /devices/virtual/bdi/8:1-fuseblk (bdi)
KERNEL[1340773493.645127] add /devices/virtual/bdi/8:6-fuseblk (bdi)
UDEV [1340773493.649353] add /devices/virtual/bdi/8:6-fuseblk (bdi)
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
That happened for me also, I tried it with Saluki to see if it would find the optical device, but the icons disappear when drives are mounted.akash_rawal wrote:The problem is definitely with thunar as pup-volume-monitor is sending correct events.
Is anyone else able to reproduce the problem?
I am now tracing thunar's source code to guess where could be the problem.
Thanks.
I'm sure you will sort it out, many thanks for the time consuming work you do, it's appreciated.
Geoff
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Thunar seems to be hiding volumes if it thinks they are system volumes.
It uses g_unix_is_mount_path_system_internal() and !g_unix_mount_point_is_user_mountable() to do this. I think problem might be there.
I have modified thunar/thunar-gio-extensions.c so that if volumes are hidden for this reason it will message on terminal. Copy back the attached file, recompile and run thunar in terminal and look out for messages which state that a volume is hidden.
If you see those messages, then for now comment out contents of thunar_g_mount_is_internal() in thunar/thunar-gio-extensions.c:406 and make it return FALSE. I will ask on gtk-list regarding that.
It uses g_unix_is_mount_path_system_internal() and !g_unix_mount_point_is_user_mountable() to do this. I think problem might be there.
I have modified thunar/thunar-gio-extensions.c so that if volumes are hidden for this reason it will message on terminal. Copy back the attached file, recompile and run thunar in terminal and look out for messages which state that a volume is hidden.
If you see those messages, then for now comment out contents of thunar_g_mount_is_internal() in thunar/thunar-gio-extensions.c:406 and make it return FALSE. I will ask on gtk-list regarding that.
- Attachments
-
- thunar-gio-extensions.c.gz
- (4.07 KiB) Downloaded 1971 times
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Re: re
I tried reproducing the problem in full install slacko 531, but failed.arj_pup wrote:well i tried it out in an frugal installation the same thunar that hid the drive icons in full install icon doesn't do so in the frugal install its an issue with the full puppy installation
Hello developer!
A big thank you for this work! I really need you save me from all these hal, gvfs, udisks ...
I do not know if you've had this bug, but I unfortunately can not delete some folders. It returns me an error message:
"Invalid cross-device link".
My Thunar is 1.4.
I can delete the empty folders, but not those containing at least one file.
I put a screen.
I hope there is a solution!
Thanks !
A big thank you for this work! I really need you save me from all these hal, gvfs, udisks ...
I do not know if you've had this bug, but I unfortunately can not delete some folders. It returns me an error message:
"Invalid cross-device link".
My Thunar is 1.4.
I can delete the empty folders, but not those containing at least one file.
I put a screen.
I hope there is a solution!
Thanks !
- Attachments
-
- Error.jpg
- (52.74 KiB) Downloaded 10571 times
I'm Commander Shepard and this is my favorite Linux distrbution on the Citadel.
This is working much better than before.
I have only one issue left.
I can't get optical drives to work unless I start the volume monitor daemon with optical drive tray open or empty. After I close the drive everything works perfectly. I can then plugin USB optical drives and or change CDs and it works.
But nothing will work if the daemon starts with a CD in the drive, or if I'm using a USB optical drive (without first getting things started with an internal drive).
Help!
I have only one issue left.
I can't get optical drives to work unless I start the volume monitor daemon with optical drive tray open or empty. After I close the drive everything works perfectly. I can then plugin USB optical drives and or change CDs and it works.
But nothing will work if the daemon starts with a CD in the drive, or if I'm using a USB optical drive (without first getting things started with an internal drive).
Help!
Code: Select all
#pup-volume-monitor
pup-volume-monitor-Message: Config file for plugin libcdrom not found, it will use default settings
(pup-volume-monitor:22251): GLib-GObject-WARNING **: invalid cast from `PupDrive' to `PupCDDrive'
(pup-volume-monitor:22251): pup-volume-monitor-CRITICAL **: pup_device_swap_contents: assertion `G_TYPE_FROM_INSTANCE(dev1) == G_TYPE_FROM_INSTANCE(dev2)' failed
[url]http://saluki-linux.com[/url]
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Updated to version 0.1.3jemimah wrote: I can't get optical drives to work unless I start the volume monitor daemon with optical drive tray open or empty.
Changelog:
- Includes a possible solution to blkid_probe_all() including optical drives in its probe (jemimah, please test, I can't reproduce this problem)
- Fixed "invalid cast from `PupDrive' to `PupVolume'"
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
On updating thunar to 1.4 I get "Invalid argument" instead and that too only sometimes.Jejy69 wrote: I do not know if you've had this bug, but I unfortunately can not delete some folders. It returns me an error message:
"Invalid cross-device link".
My Thunar is 1.4.
It can't be pup-volume-monitor bug as it does not implement any vfs.
This fixed my laptop with the internal optical drive.
But on my netbook with the USB drive, I can't get the volume monitor to acknowledge the existence of sr0 at all. It doesn't show up if I run "pup-volume-monitor-admin -l". I verified that the drive works fine if I mount it by hand.
Ideas?
But on my netbook with the USB drive, I can't get the volume monitor to acknowledge the existence of sr0 at all. It doesn't show up if I run "pup-volume-monitor-admin -l". I verified that the drive works fine if I mount it by hand.
Ideas?
[url]http://saluki-linux.com[/url]
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
What is the output of udevadm monitor when you plug in the drive?jemimah wrote: But on my netbook with the USB drive, I can't get the volume monitor to acknowledge the existence of sr0 at all. It doesn't show up if I run "pup-volume-monitor-admin -l". I verified that the drive works fine if I mount it by hand.
Code: Select all
# udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
KERNEL[1341316280.050720] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3 (usb)
KERNEL[1341316280.053092] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0 (usb)
KERNEL[1341316280.053629] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3 (scsi)
KERNEL[1341316280.054045] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/scsi_host/host3 (scsi_host)
KERNEL[1341316280.056948] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/usb_device/usbdev1.5 (usb_device)
UDEV [1341316280.074994] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3 (usb)
UDEV [1341316280.091578] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/usb_device/usbdev1.5 (usb_device)
UDEV [1341316280.204800] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0 (usb)
UDEV [1341316280.215018] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3 (scsi)
UDEV [1341316280.225889] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/scsi_host/host3 (scsi_host)
KERNEL[1341316281.063576] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0 (scsi)
KERNEL[1341316281.064294] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0 (scsi)
UDEV [1341316281.082122] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0 (scsi)
KERNEL[1341316281.172254] add /devices/virtual/bdi/11:0 (bdi)
KERNEL[1341316281.177409] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
KERNEL[1341316281.177638] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/scsi_device/3:0:0:0 (scsi_device)
KERNEL[1341316281.177851] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/bsg/3:0:0:0 (bsg)
UDEV [1341316281.186419] add /devices/virtual/bdi/11:0 (bdi)
KERNEL[1341316281.191525] change /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV [1341316281.229634] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0 (scsi)
UDEV [1341316281.247390] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/scsi_device/3:0:0:0 (scsi_device)
UDEV [1341316281.269651] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/bsg/3:0:0:0 (bsg)
UDEV [1341316281.324799] add /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV [1341316281.335682] change /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
KERNEL[1341316290.987391] change /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
UDEV [1341316291.000075] change /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sr0 (block)
[url]http://saluki-linux.com[/url]