trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: March 2011

Re: [trinity-users] Problem with medium application autostart

From: Kristopher Gamrat <pikidalto@...>
Date: Sun, 13 Mar 2011 20:11:06 -0400
On Sun, Mar 13, 2011 at 4:26 PM, Mag. Dr. Nikolaus Klepp
<office@...> wrote:
> Hi!
>
> At last I made the transition to trinity + squeeze with the last of my boxes,
> the infamous office box. I saw my desktop go down in flames (which actually
> was the falt of som weired xorg problem) and raise from the ashes 2 days
> later. After all I am very satisfied, I didn't loose my kwallet nor my kmail
> settings and date - in fact I didn't loose anything important :-)
>
> There is only one issue left, that I was not able to correct: the medium
> application autostart does not work as I exect it.
>
> What I got so far:
>
> After I log in, plug in a DVD or USB storage device. Usually there should pop
> up a dialog asdking me what medium was found and what to do next. Now that
> dialog does not show up.
> But when I open konqueror and go to media:/ I see the plugged in device (not
> mounted). I can open it from there. I unplug the USB device, the icon
> disappears as expected.
> I start kcontol, go to "Peripherials/Storage Media", there select "Defaults"
> and "Apply", close kcontrol, plug in the USB storage device and the famouse
> dialogbox shows up!
> When I log out and log in again the dialogbox does not show up until I open
> kcontrol and do these steps.
>
> Now I cannot find what kcontrol does at this stage to make things work. I
> tried strace, but kcontol does not change the contents of any file
> in .trinity. It opens and reads these files, but nothing is written:
>
> .trinity/share/apps/konqueror/servicemenus
> .trinity/share/apps/konqueror/servicemenus/xine-dvd.desktop
> .trinity/share/config/kcontrolrc
> .trinity/share/config/kdeglobals
> .trinity/share/config/khtmlrc
> .trinity/share/config/kio_httprc
> .trinity/share/config/kioslaverc
> .trinity/share/config/medianotifierrc
>
> xine-dvd.desktop plays DVDs, if inserted. At least when I first start
> kcontrol ;-)
>
> I made a diff from the ~/.trinity tree befor and after running kcontrol, but
> there are no changes.
>
> So, is there a way how I can get the medium autoplay to work?
>
> Nik

My guess is that your permissions for .trinity got messed up somehow.
You'll need read and write permissions for everything in .trinity (you
should have read and write for your user for everything in his home
anyway). From a terminal (Konsole or whatever you prefer)

ls -l ~/.trinity/share/config

The permissions (rwx) are what matter. You should have rw on them, I
don't think the x should matter for config files since you can't
execute them. If you have rw, then I don't know what's wrong. If you
don't have rw, then you'll need to get them:

chmod -R u+rw ~/.trinity

(don't include the x because not everything needs it and i don't know
what binaries and non-binaries are there that could be affected and
messed up)
(don't include the full path to the files, we want to make sure you
don't run into any other permissions problems by setting rw for
everything to make sure your user can save settings)

*If* it complains that you can't do that, then you'll need root or
sudo to try to give yourself permission:

sudo chmod -R u+rw /home/username/.trinity

(if you don't have sudo priveleges for your user, you'll need root)
(if you are root, you don't need sudo)

Let us know if this helps or not.

-- 
Kris
"Piki"
Ark Linux Webmaster
Trinity Desktop Environment Packager