Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using a portable version of Keepass on my USB Stick. Now I am searching for a way to automatically start that when I connect my USB Stick to my machine.

The Stick already gets automatically mounted by KDE upon connect so if there is a way to catch an event determining if some given files already exist that would probably be fine as well.

If possible I do not want to use polling.

Edit: So I just found out about DBUS which seems to be the right thing to look into to solve my problem. Still haven't solved it yet as DBUS seems to be quite complex.

Edit2: I learned that you can add Actions to the Device Manager in KDE. These pop up when the USB Stick gets connected. This is still not an autostart feature, but it reduces my work to one click.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.