Results 1 to 3 of 3

Thread: Ensuring a single instance of an application in Linux

  1. #1
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Ensuring a single instance of an application in Linux

    I'm working on a GUI application in QT ( on UbUntu), and I am not sure how I can ensure that only one copy of my application is running at any given time on the machine. Due to the nature of the application, running more than once doesn't make any sense, and will fail quickly. How to use QMutex and semaphore in the main.cpp to do tht . If somebody could suggest the right code ...Thnx

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Ensuring a single instance of an application in Linux


  3. #3
    Join Date
    Apr 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Ensuring a single instance of an application in Linux

    Thnx a lot ..

Similar Threads

  1. Single Application Instance
    By BadKnees in forum Qt Programming
    Replies: 8
    Last Post: 4th November 2014, 14:57
  2. Replies: 3
    Last Post: 26th March 2010, 07:26
  3. need to run only one instance of application
    By navid in forum Qt Programming
    Replies: 5
    Last Post: 24th December 2009, 09:52
  4. single instance app
    By bnilsson in forum Qt Programming
    Replies: 2
    Last Post: 1st August 2009, 08:42
  5. Only let one instance of the application run
    By chrisdsimpson in forum Newbie
    Replies: 1
    Last Post: 9th April 2008, 21:30

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.