Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Auto run an app after inserting media
Qt 6.11 is out! See what's new in the release blog

[Solved] Auto run an app after inserting media

Scheduled Pinned Locked Moved General and Desktop
14 Posts 6 Posters 6.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qwertyuiopearendil
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

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

      @[AutoRun]
      open=your.exe@

      AFAIK , no Qt specific ways!!


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        qwertyuiopearendil
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Rahul Das
          wrote on last edited by
          #4

          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..


          Declaration of (Platform) independence.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            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.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • AlicemirrorA Offline
              AlicemirrorA Offline
              Alicemirror
              wrote on last edited by
              #6

              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.

              Enrico Miglino (aka Alicemirror)
              Balearic Dynamics
              Islas Baleares, Ibiza (Spain)
              www.balearicdynamics.com

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fluca1978
                wrote on last edited by
                #7

                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....

                1 Reply Last reply
                0
                • AlicemirrorA Offline
                  AlicemirrorA Offline
                  Alicemirror
                  wrote on last edited by
                  #8

                  @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.

                  Enrico Miglino (aka Alicemirror)
                  Balearic Dynamics
                  Islas Baleares, Ibiza (Spain)
                  www.balearicdynamics.com

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lgeyer
                    wrote on last edited by
                    #9

                    [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?

                    1 Reply Last reply
                    0
                    • AlicemirrorA Offline
                      AlicemirrorA Offline
                      Alicemirror
                      wrote on last edited by
                      #10

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

                      Enrico Miglino (aka Alicemirror)
                      Balearic Dynamics
                      Islas Baleares, Ibiza (Spain)
                      www.balearicdynamics.com

                      1 Reply Last reply
                      0
                      • F Offline
                        F Offline
                        fluca1978
                        wrote on last edited by
                        #11

                        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.

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          goetz
                          wrote on last edited by
                          #12

                          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 :-)

                          http://www.catb.org/~esr/faqs/smart-questions.html

                          1 Reply Last reply
                          0
                          • AlicemirrorA Offline
                            AlicemirrorA Offline
                            Alicemirror
                            wrote on last edited by
                            #13

                            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]

                            Enrico Miglino (aka Alicemirror)
                            Balearic Dynamics
                            Islas Baleares, Ibiza (Spain)
                            www.balearicdynamics.com

                            1 Reply Last reply
                            0
                            • Q Offline
                              Q Offline
                              qwertyuiopearendil
                              wrote on last edited by
                              #14

                              Ok Thanks to all.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved