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

Linux changes #5

Merged
merged 2 commits into from
Nov 3, 2021
Merged

Linux changes #5

merged 2 commits into from
Nov 3, 2021

Conversation

janjaapbos
Copy link
Contributor

@janjaapbos janjaapbos commented Nov 3, 2021

For clipboard usage: apt install xclip.

In order to run the app as the desktop user, the user must have read access to /var/lib/zerotier-one/authtoken.secret. This can .e.g. be done by:

sudo chgrp usergroup /var/lib/zerotier-one/authtoken.secret
sudo chmod g+r /var/lib/zerotier-one/authtoken.secret

@adamierymenko adamierymenko merged commit e5338f6 into zerotier:master Nov 3, 2021
@janjaapbos janjaapbos deleted the linux-changes branch November 3, 2021 18:39
Command::new("/usr/bin/xclip").output().map_or_else(|_| String::new(), |out| String::from_utf8(out.stdout).map_or_else(|_| String::new(), |s| s))
}

#[cfg(windows)]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think your question is related to the issue (#8) you opened for Wayland support? We probably can use a rust library for cross-platform copy paste including Wayland support. I will mention that in the opened issue.

Or did you mean something else?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or did you mean something else?

I meant the above line specifically #[cfg(windows)], it seems potentially out of place/like an accidental inclusion?

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

Successfully merging this pull request may close these issues.

3 participants