VectorLinux
November 20, 2014, 12:37:32 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: 1 ... 5 6 [7]
  Print  
Author Topic: The VL-hot thread  (Read 54092 times)
caitlyn
Packager
Vectorian
****
Posts: 2876


WWW
« Reply #90 on: February 20, 2009, 01:35:27 pm »

I've finally gotten back to the idea of writing an article for O'Reilly on VL-Hot.  I've got the latest rc (maybe actually final) of VL 6.0 installed.  I've been testing with HAL up until now. 

First, congratulations on all the progress you've made.  It works very well indeed and VL-Hot Config really makes this an incredibly flexible tool for a user with half a clue.  One niggle, and it's probably more cosmetics or my personal sensibilities that anything else.  The default mount path is /mnt/vl-hot.  That's been the case for a long time and I really don't have a problem with that.  When I insert a USB stick the icons pop up as expected, but the device is at /mnt/vl-hot/vl-hot.  Isn't that redundant?  Why not just make the default path /mnt much as HAL does with /media.  Second device is /mnt/vl-hot/vl-hot1.  Still redundant.

Yes, I know I can change this in VL-Hot Config but the default behavior looks, well... strange.

One other suggestion:  HAL is capable of reading a device name string on a lot of USB sticks so it comes up with a mount point that is often a brand name or model.  Can VL-Hot do the same at some point in the future? 

Anyway, these are just my thoughts.  I haven't found an actual bug yet  Grin
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
Joe1962
Administrator
Vectorian
*****
Posts: 2499



WWW
« Reply #91 on: February 20, 2009, 01:44:19 pm »

Thanks!

Since what is actually mounted are partitions, not devices (although some older pendrives may not have a partition table but the device is treated as a partition anyway), vl-hot in the more recent incarnations looks for a volume label and uses that as the mount name. If no label is found, it defaults to vl-hot, vl-hot1, etc. I looked into using one of the USB device strings for this a long time ago, and it is certainly doable, but they are not always "nice" names, so went for the labels instead.


EDIT: The new naming convention in the latest releases makes it possible to default to /mnt, but I would have to rethink vlh-umount which relies on a specific dir for unmounting all vl-hot mounted partitions.


EDIT2: BTW, there is a bug in the user selection code on the latest release (already fixed on the svn repo) which causes a failure of the notification popups in many cases.
« Last Edit: February 20, 2009, 01:49:41 pm by Joe1962 » Logged

O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10
caitlyn
Packager
Vectorian
****
Posts: 2876


WWW
« Reply #92 on: February 20, 2009, 02:00:39 pm »

Let me see if I understand this:

If I change from /mnt/vl-hot to /mnt in VL-Hot Config then unmounting won't work?

When you say "user selection code" are you referring to the selection of the default base directory in VL-Hot Config?

I also think I've finally found a bug:  In the 1.x versions if a device is inserted when a system is shutdown the icons for a device was still in place at the next boot even if the device itself is no longer present.  This has mostly been corrected in version 2.0.0 but I have noticed that if I have two USB sticks inserted when I shutdown the icon for the second one will still be present at next boot in Xfce.  This happens in VL 6.0 rc4.10. 

I'm in the middle of writing the article right now and I'd like to be really clear about what a user can and can't expect.

Thanks,
Cait
« Last Edit: February 20, 2009, 03:08:35 pm by caitlyn » Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
caitlyn
Packager
Vectorian
****
Posts: 2876


WWW
« Reply #93 on: February 21, 2009, 01:51:08 pm »

Now I've gone and done it:

http://broadcast.oreilly.com/2009/02/vl-hot-a-non-polling-alternati.html

Joe1962:  I hope you like the write-up.
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
Joe1962
Administrator
Vectorian
*****
Posts: 2499



WWW
« Reply #94 on: February 26, 2009, 01:04:42 pm »

Sorry, I was away for a few days and now I find we are having big problems with the internet connection, I barely managed this reply.

If I change from /mnt/vl-hot to /mnt in VL-Hot Config then unmounting won't work?
Normal unmounting from the desktop icon should work, just vlh-umount won't, as it is still sort of crude... Grin

When you say "user selection code" are you referring to the selection of the default base directory in VL-Hot Config?
No, I meant the code that detects the active GUI user to send the notification as/to.

BTW, I like the article and hope to be able to write a comment next week to clear some things up if the internet connection issue is fixed.
Logged

O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10
caitlyn
Packager
Vectorian
****
Posts: 2876


WWW
« Reply #95 on: February 26, 2009, 01:26:27 pm »

Glad you like the article.  If there are some errors or things needing clarification and the O'Reilly page is difficult/slow on your network connection feel free to e-mail or PM me and I'll gladly post the corrections in an obvious way.
Logged

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1
Joe1962
Administrator
Vectorian
*****
Posts: 2499



WWW
« Reply #96 on: February 27, 2009, 10:51:05 am »

We got the net connection back today, sort of... but I managed to post a comment. I will paste it here too, for reference:

Quote
Very nice article, as I have come to expect from Caitlyn. Just a few points of clarification which I did not have time to send her before the article was finished:

The code for opening a filenamager is not yet operational, though the configuration option was already added to vl-hot-config.

The left-over icons cleanup takes place on the next unmount action, so it will eventually catch up, lol. An option is to set up a small script that runs during boot to take care of this.

There are 2 desktop icons for each partition on XFCE due to a limitation of this desktop environment, which does not seem to handle custom icon actions. On KDE there would be only 1 icon. I have not tested on Gnome so this defaults to the 2 icon system, though it may support the custom actions.

The default mountbase is /mnt/vl-hot/, but the actual mount point within that is taken from 3 sources in order of preference:

1- custom name from vl-hot.conf
2- volume label of the partition
3- vl-hot + a sequential number

This means it will use vl-hot# only if the first 2 options are not set.
Logged

O'Neill (RE the Asgard): "Usually they ask nicely before they ignore us and do what they damn well please."
http://joe1962.bigbox.info
Running: VL 7 Std 64 + self-cooked XFCE-4.10
Pages: 1 ... 5 6 [7]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!