[Solved] Auto run an app after inserting media



  • Hi All,
    For a project i should create an app, this app will be inserted into sd or cf card, that start when a media it's plugged into the computer.
    Have you some ideas?
    Thanks.



  • A "autorun.inf" file does autorun if you are on windows .

    @[AutoRun]
    open=your.exe@

    AFAIK , no Qt specific ways!!



  • Thanks for quikly reply, I'll be back with my feedback soon to be able to close it. Are there any soltion also for mac?



  • I dont work on mac but i afraid, autorun feature is disabled in mac.. not sure :(

    Some one who works on mac might help you..



  • All sources that I have read tell that OS X has no autorun feature and, adding to that, I've never came across one that has that feature.



  • Autorun on Mac is NOT set because Apple consider this a huge security risk so don't expect to find this in some future versions.

    It is strange because Mac is the only that doesn't support this feature: Windos and Linux support it.



  • Mac is indeed a strange operating system!
    I don't have one to test, but maybe devd can come in help. On FreeBSD devd allows the execution of userland programs when the device state changes (e.g., an usb key is attached). Since OSX should be based on freeBSD userland, I guess devd should be somewhere there....



  • @Luca: if it can help you, I have seen just yesterday night that the last "Virtual Box":http://www.virtualbox.org/ release include Mac OSX Snow Leopard in the OS supported.



  • [quote author="Alicemirror" date="1316761811"]@Luca: if it can help you, I have seen just yesterday night that the last "Virtual Box":http://www.virtualbox.org/ release include Mac OSX Snow Leopard in the OS supported.[/quote]

    They do support Mac OS X as host, not guest - do they? As far as I know Apples license restrictions prevent installing Mac OS X on non-apple hardware and therefore this is not supported or even allowed by most hypervisors (not supported != not possible). Has this changed recently?



  • Yep. This was what I known, but it seems that something is changed. This is the interesting news.



  • At the moment I'm not interested in developing for Mac OS X, but I will surely give virtualization a try if I have to.



  • Autorun is evil anyways. In many environments, even on Windows, this "feature" is disabled too, for very good (security) reasons, especially in corporate environments. You always must prepare for these cases anyways - by adding a nice README.txt file and/or a well named application or script that the user will start.

    For Mac OS X:
    Do not try to introduce habits of other operating systems. The regular Mac user is smart enough to double click on a well named application in order to start or install your software. The CDROM or disk image (.dmg file) is mounted by default and a window with the toplevel directory is opened. So as a conclusion: Save yourself the time and work of trying to implement autorunning on the Mac :-)



  • Perfectly agree. Expecially to those you bolded

    [quote author="Volker" date="1316773529"]For Mac OS X:
    Do not try to introduce habits of other operating systems. The regular Mac user is smart enough to double click on a well named application in order to start or install your software. The CDROM or disk image (.dmg file) is mounted by default and a window with the toplevel directory is opened. So as a conclusion: Save yourself the time and work of trying to implement autorunning on the Mac :-)[/quote]



  • Ok Thanks to all.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.