-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
chrome-remote-desktop: init at unstable-2022-02-03 #157962
Conversation
The code works well with It was due to recent change in |
@jtojnar Finally! All checks have passed! Thank you for your guidance! |
Hi, thanks for your work!
I created |
@PaulGrandperrin The error refers to here which says that login fails if user has an existing graphical session such as If you want to implement |
Ah ok, I read this message, but I misunderstood it because it was labeled as "WARNING" and not as or "ERROR" (or similar). |
it looks like the new version of the deb package depends on a new library, see this on my machine, I had to update the hash as well:
And I am getting this error:
|
Just tried this on my machine and ran into the following error when the systemd service was starting up:
|
Closing due to no answer from the author @sepiabrown in almost a year. |
for i in $out/$replacePrefix/{chrome-remote-desktop-host,start-host,native-messaging-host,remote-assistance-host,user-session}; do | ||
sed -i "s|$replacePrefix|$replaceTarget|g" $i | ||
patchelf --set-rpath "${libPath}" $i | ||
patchelf --set-interpreter ${glibc}/lib/ld-linux-x86-64.so.2 $i | ||
done |
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.
We intend with 2 spaces in nix files.
substituteInPlace $out/$replacePrefix/chrome-remote-desktop --replace "USER_SESSION_PATH = " "USER_SESSION_PATH = \"/run/wrappers/bin/crd-user-session\" #" | ||
substituteInPlace $out/$replacePrefix/chrome-remote-desktop --replace /usr/bin/python3 ${python3.withPackages (ps: with ps; [ psutil ])}/bin/python3 |
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.
substituteInPlace can take multiple replace arguemnts.
substituteInPlace $out/$replacePrefix/chrome-remote-desktop --replace "USER_SESSION_PATH = " "USER_SESSION_PATH = \"/run/wrappers/bin/crd-user-session\" #" | |
substituteInPlace $out/$replacePrefix/chrome-remote-desktop --replace /usr/bin/python3 ${python3.withPackages (ps: with ps; [ psutil ])}/bin/python3 | |
substituteInPlace $out/$replacePrefix/chrome-remote-desktop \ | |
--replace "USER_SESSION_PATH = " "USER_SESSION_PATH = \"/run/wrappers/bin/crd-user-session\" #" \ | |
--replace /usr/bin/python3 ${python3.withPackages (ps: with ps; [ psutil ])}/bin/python3 |
and so on
patchPhase = | ||
'' |
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.
patchPhase = | |
'' | |
postPatch = '' |
replacePrefix = "/opt/google/chrome-remote-desktop"; | ||
replaceTarget = "/run/current-system/sw/bin/./././"; |
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.
Mangling nix variable to bash ones is not that great.
url = "https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb"; | ||
}; | ||
|
||
buildInputs = [ pkgs.makeWrapper ]; |
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.
buildInputs = [ pkgs.makeWrapper ]; | |
nativeBuildInputs = [ makeWrapper ]; |
Motivation for this change
#34084
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes