-
-
Notifications
You must be signed in to change notification settings - Fork 196
Fix ksnip not working for multiple users on the same machine #1061
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
Conversation
@sobjornstad no need to credit me, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, a few minor coding style changes if you could adjust them please.
attachDetach(); | ||
return create(); | ||
} | ||
if(this->create()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add braces around this return.
Is "this->" here required, I think can be omitted.
} | ||
return false; | ||
if(mSingular->attach()) | ||
mSingular->detach(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Braces
|
||
#include <iostream> | ||
#include <unistd.h> | ||
#include <sys/types.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some of those includes are duplicated, can be cleaned up a bit.
This doesn't work on Windows, actually, it breaks the windows build. |
Created a pull request for @m0ntana's patch here, since they have not responded to that request. The fix worked for me as well, would love to get it into upstream so I don't have to build ksnip myself everywhere I want this to work :)
Could not find @m0ntana's email to credit them, please edit committer metadata if you can