Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 01:25
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 11 [154 Posts]   Goto page: 1, 2, 3, ..., 9, 10, 11 Next
Author Message
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 08 Jun 2012, 13:31    Post subject:  pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6
Subject description: Lightweight drive management, integrates well with filechooser and file manager
 

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.

Last edited by akash_rawal on Tue 14 Jan 2014, 09:23; edited 36 times in total
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 09 Jun 2012, 03:38    Post subject: 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/k1hn0un11p395k2/h-Qrv-1wgk/desktop-drive-icons

Last edited by akash_rawal on Tue 14 Jan 2014, 09:15; edited 10 times in total
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Mon 11 Jun 2012, 01:31    Post subject:  

For other puppies, instructions to compile from source...

  1. Get devx.sfs file for your puppy, it contains necessary tools to compile programs from source.
  2. Get source code (http://dl.dropbox.com/u/58347439/pup-vm/source/pup-volume-monitor-0.1.15.tar.gz), extract the files into some directory,
  3. Open terminal in that directory (rox-filer shortcut: `)(pcmanfm shortcut: F4)
  4. Type ./configure --prefix=/usr --sysconfdir=/etc && make && make install
    --sysconfdir=/etc is important, or else config files will be installed in wrong place.
  5. Create start-pup-volume-monitor script in /etc/init.d with contents
    Code:
    #!/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


  6. 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.


The latest sources are available on subversion, at http://pup-volume-monitor.googlecode.com/svn/trunk/. To use them:

Code:

svn checkout http://pup-volume-monitor.googlecode.com/svn/trunk/ pup-volume-monitor
cd pup-volume-monitor
autoreconf -fi

Then continue from step 4 above.

Last edited by akash_rawal on Tue 14 Jan 2014, 09:12; edited 21 times in total
Back to top
View user's profile Send private message 
arj_pup

Joined: 04 Nov 2011
Posts: 16
Location: india

PostPosted: Mon 25 Jun 2012, 08:43    Post subject: 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,
Back to top
View user's profile Send private message 
arj_pup

Joined: 04 Nov 2011
Posts: 16
Location: india

PostPosted: Mon 25 Jun 2012, 08:53    Post subject: 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 Cool
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
capture2515.png
 Description   
 Filesize   43.57 KB
 Viewed   4607 Time(s)

capture2515.png

capture1106.png
 Description   
 Filesize   46.01 KB
 Viewed   4855 Time(s)

capture1106.png

Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Mon 25 Jun 2012, 14:45    Post subject: Re: a small problem  

arj_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 Cool
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


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 has Confused

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/viewtopic.php?p=420035#420035, although I had compiled it from source for myself.
Back to top
View user's profile Send private message 
arj_pup

Joined: 04 Nov 2011
Posts: 16
Location: india

PostPosted: Wed 27 Jun 2012, 01:05    Post subject:  

[/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:

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)
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Thu 28 Jun 2012, 01:07    Post subject:  

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.
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1429
Location: Queensland Australia ɹǝpu∩uʍop

PostPosted: Fri 29 Jun 2012, 01:19    Post subject:  

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.

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.

I'm sure you will sort it out, many thanks for the time consuming work you do, it's appreciated.

Geoff

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 29 Jun 2012, 14:07    Post subject:  

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.
thunar-gio-extensions.c.gz
Description 
gz

 Download 
Filename  thunar-gio-extensions.c.gz 
Filesize  4.07 KB 
Downloaded  796 Time(s) 
Back to top
View user's profile Send private message 
arj_pup

Joined: 04 Nov 2011
Posts: 16
Location: india

PostPosted: Sat 30 Jun 2012, 07:16    Post subject: re  

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
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 30 Jun 2012, 14:26    Post subject: Re: re  

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

I tried reproducing the problem in full install slacko 531, but failed.
Back to top
View user's profile Send private message 
Jejy69


Joined: 20 Jan 2011
Posts: 707
Location: Perpignan

PostPosted: Mon 02 Jul 2012, 15:04    Post subject:  

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! Smile
Thanks !
Error.jpg
 Description   
 Filesize   52.74 KB
 Viewed   4800 Time(s)

Error.jpg


_________________
I'm Commander Shepard and this is my favorite Linux distrbution on the Citadel.
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Mon 02 Jul 2012, 16:01    Post subject:  

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!


Code:
#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

_________________
http://saluki-linux.com
Back to top
View user's profile Send private message Visit poster's website 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Tue 03 Jul 2012, 08:42    Post subject:  

jemimah wrote:

I can't get optical drives to work unless I start the volume monitor daemon with optical drive tray open or empty.

Updated to version 0.1.3

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'"
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 11 [154 Posts]   Goto page: 1, 2, 3, ..., 9, 10, 11 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1000s ][ Queries: 13 (0.0078s) ][ GZIP on ]