Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of X Session Management Protocol #164

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

Support of X Session Management Protocol #164

MagicMuscleMan opened this issue Mar 10, 2013 · 2 comments

Comments

@MagicMuscleMan
Copy link

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
Copy link
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
Copy link
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//issues/164
.

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

This is a pre-requisite for git-cola#164.

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

Closes git-cola#164
Closes git-cola#244

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

This is a pre-requisite for git-cola#164.

Signed-off-by: David Aguilar <davvid@gmail.com>
@davvid davvid closed this as completed in 0a692a1 Apr 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants