Re: [kde] Autostart removable media setting

2013-08-03 Thread Kip Warner
On Sat, 2013-08-03 at 09:45 +, Duncan wrote:
> Meanwhile, doing research for a different thread, I discovered that in 
> kde, it's solid that provides the auto-action front-end.  For kde 4.10 
> and earlier that was a dep (on gentoo anyway) of something else I had 
> installed, so I had the settings for it in kcontrol/kde-settings.  With 
> the 4.11-pre-release I'm now running, that dependency went away, so solid 
> went away as well, and with it the kcontrol module where these actions 
> are configured.

Thanks for bringing solid to my attention, Duncan. I've filed a bug
report here against solid. Hopefully that is the correct product.



-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-08-03 Thread Duncan
Kip Warner posted on Fri, 02 Aug 2013 14:13:32 -0700 as excerpted:

> I think typically when autostart is implemented, it's at a much higher
> level than udev.

You're correct, but my point there was, autostart is rather pointless 
without auto-detect (basically udev triggered) and automount (udisks 
triggered, and depending on auto-detect and thus udev), and I have those 
turned off, so whatever level it's implemented at, it's not going to work 
here.

Meanwhile, doing research for a different thread, I discovered that in 
kde, it's solid that provides the auto-action front-end.  For kde 4.10 
and earlier that was a dep (on gentoo anyway) of something else I had 
installed, so I had the settings for it in kcontrol/kde-settings.  With 
the 4.11-pre-release I'm now running, that dependency went away, so solid 
went away as well, and with it the kcontrol module where these actions 
are configured.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Autostart removable media setting

2013-08-02 Thread Kip Warner
On Fri, 2013-08-02 at 00:59 +, Duncan wrote:
> I believe the plumbing is there, but an auto-run action may not be 
> configured by default.
> 

> When media detection and actions are setup, inserting a removable media 
> (be it a USB stick/drive, a CD/DVD, or whatever) triggers media detection 
> via udev and udisks (I have udev installed and the USE flag on but not 
> udisks, as when I investigated it's a small scripts package by itself, 
> but pulls in all sorts of other deps including parted, polkit, 
> consolekit, spidermonkey... 

I think typically when autostart is implemented, it's at a much higher
level than udev. Under Xfce, I believe this functionality is implemented
in thunar-volman. User level graphical configuration is available in
thunar-volman-settings.

> That detection triggers a notification with various actions available.
> The actions are configurable based on the type of device, etc, and by 
> default include things like playing a DVD in a media player (using 
> standard freedesktop.org associations), mounting the filesystem and 
> opening it in dolphin, etc.

Yup. But I think the auto action functionality in KDE is different than
autostart.

> Using that infrastructure, I believe it would be reasonably easy to setup 
> an autoplay action, 

It could be done that way, but ideally the layman user should probably
not have to make custom action definitions for something already
standardized.

> If that action isn't there by default, it may be that the freedesktop.org 
> spec for it came along after kde4 was already available and it was judged 
> a feature that should wait for a major version bump, kde5/frameworks.  
> Alternatively, it may be that it was judged a bit too risky, even with a 
> prompt.

I suspect that it's probably the former reason because the spec clearly
states that execution can never happen automatically, even when the
feature is enabled, and the user would always have to be prompted
anyways.

Thanks for sharing your thoughts, Duncan.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-08-01 Thread Duncan
Kip Warner posted on Thu, 01 Aug 2013 11:02:46 -0700 as excerpted:

> On Wed, 2013-07-31 at 20:12 +0530, dE wrote:
>> On 07/30/13 06:42, Kip Warner wrote:
>> > Hey list,
>> >
>> > I looked through KDE 4.10's System Settings configuration areas and I
>> > could not seem to locate the location to enable / disable autostart
>> > for removable media, as per XDG Autostart[1]. I found settings for
>> > other user actions on removable media, but not for autostart. Perhaps
>> > it is not implemented under KDE? Any help appreciated.
>> >
>> > Respectfully,
>> 
>> This feature should be removed if it exists. Everyone know how secure
>> Windows is.
> 
> Most major desktop environments support this, such as Gnome 3, Gnome 2,
> Unity, Xfce, etc. It doesn't mean what is on the mounted media is
> automatically executed. It just means the user will be prompted if
> they'd like to run it automatically when mounted. There is nothing wrong
> with that.

I believe the plumbing is there, but an auto-run action may not be 
configured by default.

FWIW I (being a gentooer with the choice available in the form of USE 
flags that set the appropriate pre-build configure script options) have 
most or all of that functionality (including automount itself) turned 
off, thereby eliminating a bunch of dependencies I'd prefer not to have 
installed in the first place.  Thus, I can't very easily verify my memory 
of existing behavior and the corresponding run-time options.  But that 
said, here's what I remember from when I had it available:

When media detection and actions are setup, inserting a removable media 
(be it a USB stick/drive, a CD/DVD, or whatever) triggers media detection 
via udev and udisks (I have udev installed and the USE flag on but not 
udisks, as when I investigated it's a small scripts package by itself, 
but pulls in all sorts of other deps including parted, polkit, 
consolekit, spidermonkey... and some less controversial packages too, all 
of which I'd prefer to live without in terms of sysadmin level 
complications I otherwise don't want or need).

That detection triggers a notification with various actions available.
The actions are configurable based on the type of device, etc, and by 
default include things like playing a DVD in a media player (using 
standard freedesktop.org associations), mounting the filesystem and 
opening it in dolphin, etc.

Using that infrastructure, I believe it would be reasonably easy to setup 
an autoplay action, almost certainly reasonably easy for a competent 
system administrator[1] familiar with his[2] hardware and the distro he's 
working on.  But at least back a couple kde4 feature-versions ago when I 
last had that stuff installed here, either there was not such an action 
by default, or more likely, if there is/was, I never used it with media 
that would trigger that particular action displayed as available.

If that action isn't there by default, it may be that the freedesktop.org 
spec for it came along after kde4 was already available and it was judged 
a feature that should wait for a major version bump, kde5/frameworks.  
Alternatively, it may be that it was judged a bit too risky, even with a 
prompt.

Meanwhile, given that I don't have that feature even installed now it's 
difficult for me to check what the kcontrol module for configuring the 
media detection actions was named, but I distinctly remember such a 
module showing up in kde settings.  I checked into it at the time, and 
it's definitely possible to setup new or reconfigure existing actions 
based on various criteria such as whether the inserted media is an 
optical device, whether it has a detected filesystem on it or is simply a 
CD, etc.  That's where I'd suggest looking, as that's the mechanism kde 
uses for it.  But I don't remember the name...

---
[1] System administrator:  As used here, that's the person or persons 
that are responsible for choosing what OS/distro is installed along with 
optional packages, and for configuring them as necessary.  Every computer 
has at least one sysadmin, whether they choose to call themselves that or 
not, tho in the case of something like Google's chrome machines or some 
not-jailbroken smartphones/tabs, that responsibility is shared or even 
nearly entirely borne by the service provider, making the user much more 
a simple user without admin privs or responsibilities.

[2] His/he:  In context this is gender-generic, using the long 
established but now no longer "politically correct" in some circles 
convention of referring to a person of unknown gender as "he", while 
referring to a personified object such as a ship or a car or a hurricane 
as "she".

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman

___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listi

Re: [kde] Autostart removable media setting

2013-08-01 Thread Kip Warner
On Thu, 2013-08-01 at 09:21 +0200, Kevin Krammer wrote:

> My guess would be not implemented (yet), but I haven't had time for a 
> thorough 
> check.

Thanks Kevin. That is what I suspected, but figured it would be better
to have asked.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-08-01 Thread Kip Warner
On Wed, 2013-07-31 at 16:20 +0100, Anne Wilson wrote:
> I'm not clear whether you are wanting to include this in some
> development, or just autostart USB drives as a user.  If it is the
> second, you can enable this by right-clicking on the USB icon in the
> panel (it may be hidden when no device is present, so available via
> the up-arrow) > Device Notifier Settings > Removable Devices > Enable
> automatic mounting of removable media.
> 
> Anne

Hey Anne,

Sorry, I don't mean automatic mounting. I mean autostart.[1]

As I mentioned to dE, most major desktop environments support this, such
as Gnome 3, Gnome 2, Unity, Xfce, etc. It doesn't mean what is on the
mounted media is automatically executed. It just means the user will be
prompted if they'd like to run it automatically when mounted. 

[1] 


-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-08-01 Thread Kip Warner
On Wed, 2013-07-31 at 20:12 +0530, dE wrote:
> On 07/30/13 06:42, Kip Warner wrote:
> > Hey list,
> >
> > I looked through KDE 4.10's System Settings configuration areas and I
> > could not seem to locate the location to enable / disable autostart for
> > removable media, as per XDG Autostart[1]. I found settings for other
> > user actions on removable media, but not for autostart. Perhaps it is
> > not implemented under KDE? Any help appreciated.
> >
> > Respectfully,
> 
> This feature should be removed if it exists. Everyone know how secure 
> Windows is.

Most major desktop environments support this, such as Gnome 3, Gnome 2,
Unity, Xfce, etc. It doesn't mean what is on the mounted media is
automatically executed. It just means the user will be prompted if
they'd like to run it automatically when mounted. There is nothing wrong
with that.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-08-01 Thread Kevin Krammer
On Tuesday, 2013-07-30, Kip Warner wrote:
> Hey list,
> 
> I looked through KDE 4.10's System Settings configuration areas and I
> could not seem to locate the location to enable / disable autostart for
> removable media, as per XDG Autostart[1]. I found settings for other
> user actions on removable media, but not for autostart. Perhaps it is
> not implemented under KDE? Any help appreciated.

My guess would be not implemented (yet), but I haven't had time for a thorough 
check.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


signature.asc
Description: This is a digitally signed message part.
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Re: [kde] Autostart removable media setting

2013-07-31 Thread Anne Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 30/07/2013 02:12, Kip Warner wrote:
> Hey list,
> 
> I looked through KDE 4.10's System Settings configuration areas and
> I could not seem to locate the location to enable / disable
> autostart for removable media, as per XDG Autostart[1]. I found
> settings for other user actions on removable media, but not for
> autostart. Perhaps it is not implemented under KDE? Any help
> appreciated.
> 
> Respectfully,
> 
> [1]
> 
>
> 
> 
> 
> ___ This message is
> from the kde mailing list. Account management:
> https://mail.kde.org/mailman/listinfo/kde. Archives:
> http://lists.kde.org/. More info: http://www.kde.org/faq.html.
> 
I'm not clear whether you are wanting to include this in some
development, or just autostart USB drives as a user.  If it is the
second, you can enable this by right-clicking on the USB icon in the
panel (it may be hidden when no device is present, so available via
the up-arrow) > Device Notifier Settings > Removable Devices > Enable
automatic mounting of removable media.

Anne
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlH5K0oACgkQj93fyh4cnBcplACfRuAPNbtHNQMPx3EitNhtEy0s
4EsAniVz5fHfUsP18JpBRR8cvM8Jk/l5
=iJUn
-END PGP SIGNATURE-
___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


Re: [kde] Autostart removable media setting

2013-07-31 Thread dE

On 07/30/13 06:42, Kip Warner wrote:

Hey list,

I looked through KDE 4.10's System Settings configuration areas and I
could not seem to locate the location to enable / disable autostart for
removable media, as per XDG Autostart[1]. I found settings for other
user actions on removable media, but not for autostart. Perhaps it is
not implemented under KDE? Any help appreciated.

Respectfully,


This feature should be removed if it exists. Everyone know how secure 
Windows is.

___
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.