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. What does CONFIG -= app_bundle do?
Forum Updated to NodeBB v4.3 + New Features

What does CONFIG -= app_bundle do?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 4.2k Views 2 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.
  • JKSHJ Online
    JKSHJ Online
    JKSH
    Moderators
    wrote on last edited by
    #1

    When we create a new Qt Console Application using Qt Creator's project wizard, the auto-generated .pro file contains CONFIG -= app_bundle.

    Is this line strictly necessary? What happens if it were removed? (I don't have a macOS machine so I can't experiment myself)

    Thanks!

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Hi,

      To the best of my knowledge, a console application is a *nix command line tool which you call by its name directly.

      On macOS, app bundles are usually started with:

      • A click on the dock
      • A double click in the finder
      • Using the open command from the terminal on the bundle name
      • Calling the application directly in the bundle: ./my_app.app/Content/MacOS/my_app

      AFAIK, application bundles are meant for applications which provides a GUI however they can contain command line tools and a lot of stuff (take for example the Xcode app bundle). You can imagine adding the path to these tools to your PATH environment variable to make them accessible directly in the terminal.

      But I think that it would fit the definition of a console application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • dheerendraD Offline
        dheerendraD Offline
        dheerendra
        Qt Champions 2022
        wrote on last edited by
        #2

        It build application bundle instead of standalone executable. Bundle will have the meta information details like Info.list

        Dheerendra
        @Community Service
        Certified Qt Specialist
        http://www.pthinks.com

        JKSHJ 1 Reply Last reply
        3
        • dheerendraD dheerendra

          It build application bundle instead of standalone executable. Bundle will have the meta information details like Info.list

          JKSHJ Online
          JKSHJ Online
          JKSH
          Moderators
          wrote on last edited by
          #3

          @dheerendra said in What does CONFIG -= app_bundle do?:

          It build application bundle instead of standalone executable. Bundle will have the meta information details like Info.list

          Thanks, @dheerendra.

          It's still not clear to me though: Why does a console application needs CONFIG -= app_bundle on macOS? Is there a reason why a console app cannot (or should not) be placed inside a bundle?

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Hi,

            To the best of my knowledge, a console application is a *nix command line tool which you call by its name directly.

            On macOS, app bundles are usually started with:

            • A click on the dock
            • A double click in the finder
            • Using the open command from the terminal on the bundle name
            • Calling the application directly in the bundle: ./my_app.app/Content/MacOS/my_app

            AFAIK, application bundles are meant for applications which provides a GUI however they can contain command line tools and a lot of stuff (take for example the Xcode app bundle). You can imagine adding the path to these tools to your PATH environment variable to make them accessible directly in the terminal.

            But I think that it would fit the definition of a console application.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            3

            • Login

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