Bug 285210 - New instance launch and failure to lock session
Summary: New instance launch and failure to lock session
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: Session support (show other bugs)
Version: 4.2.2
Platform: Ubuntu Linux
: HI wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 21:22 UTC by Mateusz Loskot
Modified: 2015-06-03 13:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Unexpected behaviour while launching new instance of KDevelop (242.63 KB, image/png)
2011-10-28 21:22 UTC, Mateusz Loskot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mateusz Loskot 2011-10-28 21:22:42 UTC
Created attachment 64994 [details]
Unexpected behaviour while launching new instance of KDevelop

Version:           4.2.2 (using KDE 4.6.5) 
OS:                Linux

KDevelop locks the current session.
If I try to launch new instance of KDevelop, it displays message box saying that KDevelop failed to lock the session.
Then gives up and shuts down.



Reproducible: Didn't try

Steps to Reproduce:
1) Launch KDevelop
2) Open a session (e.g. X)
3) Launch another instance of kdevelop (from windows manager menu, console, does not matter), but do not use any command line switches
4) Observe message that the session X is already opened and can not be locked

Actual Results:  
See screenshot

Expected Results:  
KDevelop should check if session is already opened.
If session is opened, KDevelop should launch with new empty session.
In my opinion, that's the behaviour most users would expect.
Comment 1 Milian Wolff 2011-10-29 12:46:55 UTC
I agree
Comment 2 Yngve Levinsen 2012-03-19 10:01:57 UTC
Just got the same problem using version:
Qt: 4.8.0
KDE Development Platform: 4.8.1 (4.8.1)
KDevelop: 4.3.0

I'm not quite sure how I triggered the bug. Now I have no idea where the lock is registered so I'm not sure how to open the session again.

I also agree, if I try to open kdevelop and it finds that the "default session" is already opened, my intent is to open an empty (or different) session.
Comment 3 Benedikt Geißler 2015-06-03 13:49:36 UTC
If try to start a new instance of Kdevelop while there is already at least one running using the K-Menu or the context menu in the panel/task bar, the splash screen from Kdevelop appears for a fraction of a second and nothing happens after that.