Support of X Session Management Protocol #164

Closed
MagicMuscleMan opened this Issue Mar 10, 2013 · 2 comments

Projects

None yet

3 participants

@MagicMuscleMan

git-cola should support the X Session Management Protocol (XSMP). This protocol is used to reload an application which was open during session log-out at the next log-in on most UNIX desktops. Correctly implemented, git-cola does not only get reloaded, it does also load the correct git repository again. The lack of this feature is especially awkward, when using KDE's activities.

Please see http://www.x.org/releases/X11R7.7/doc/libSM/xsmp.html for more information about XSMP (contains implementation advise).

@davvid
Member
davvid commented Mar 13, 2013

Thanks for the link to the docs. I think this would be a nice feature, though I don't know very much about how to register for these messages. git-cola uses PyQt4 so if there are any Python or Qt4 examples then that would be a big help. KDE is all Qt so I would imagine there's something somewhere that shows how to do it.

@ugtar
Member
ugtar commented Mar 13, 2013

So qt has a QSessionManager class for dealing with this stuff. Here is info
for dealing with sessions in Qt:
http://qt-project.org/doc/qt-4.8/session.html

And the QSessionManager:
http://qt-project.org/doc/qt-4.8/qsessionmanager.html

Hope that's enough...

Uri

Please consider the environment before printing this message.
http://wwf.panda.org/savepaper/

On Mar 10, 2013, at 2:08 PM, MagicMuscleMan notifications@github.com
wrote:

git-cola should support the X Session Management Protocol (XSMP). This
protocol is used to reload an application which was open during session
log-out at the next log-in on most UNIX desktops. Correctly implemented,
git-cola does not only get reloaded, it does also load the correct git
repository again. The lack of this feature is especially awkward, when
using KDE's activities.

Please see http://www.x.org/releases/X11R7.7/doc/libSM/xsmp.html for more
information about XSMP (contains implementation advise).


Reply to this email directly or view it on
GitHubhttps://github.com/git-cola/git-cola/issues/164
.

@davvid davvid added a commit to davvid/git-cola that referenced this issue Apr 6, 2014
@davvid davvid settings: add a session class
Add a way to save per-session state data in
~/.config/git-cola/sessions/.

This is a pre-requisite for #164.

Signed-off-by: David Aguilar <davvid@gmail.com>
519957e
@davvid davvid added a commit to davvid/git-cola that referenced this issue Apr 6, 2014
@davvid davvid sessions: add support for the X session management protocol
Add a -session argument and implement QApplication::commitData so that
git-cola remembers its state across logout/reboot.

Closes #164
Closes #244

Suggested-by: @MagicMuscleMan in #164
Helped-by: @Koblaid in #244
Signed-off-by: David Aguilar <davvid@gmail.com>
1b1a1e3
@davvid davvid added a commit to davvid/git-cola that referenced this issue Apr 6, 2014
@davvid davvid settings: add a session class
Add a way to save per-session state data in
~/.config/git-cola/sessions/.

This is a pre-requisite for #164.

Signed-off-by: David Aguilar <davvid@gmail.com>
b2b0468
@davvid davvid added a commit that closed this issue Apr 6, 2014
@davvid davvid sessions: add support for the X session management protocol
Add a -session argument and implement QApplication::commitData so that
git-cola remembers its state across logout/reboot.

Closes #164
Closes #244

Suggested-by: @MagicMuscleMan in #164
Helped-by: @Koblaid in #244
Signed-off-by: David Aguilar <davvid@gmail.com>
0a692a1
@davvid davvid closed this in 0a692a1 Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment