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

Socket missing. #170

Closed
YaroKasear opened this issue May 8, 2024 · 7 comments
Closed

Socket missing. #170

YaroKasear opened this issue May 8, 2024 · 7 comments

Comments

@YaroKasear
Copy link

YaroKasear commented May 8, 2024

It seems like hyprctl hyprpaper isn't working.

Despite the fact hyprpaper is running, I get this:

Couldn't connect to /run/user/1000/hypr/_1715171536_207074319/.hyprpaper.sock. (3)

I checked and the socket is not there. I don't know where hyprpaper is putting it, but it's not being put where it's supposed to be. I even looked in /tmp on the off chance hyprpaper might still be trying to set up a socket in the old location, but there's no /tmp/hypr there.

I'm up to date on Nix with the flake.

I ran hyprpaper from a terminal and here's my output:

[LOG] Welcome to hyprpaper!
built from commit v0.6.0 ()
[LOG] Cleaned old hyprpaper preloads (1), removing 14.7MB
[LOG] Preloaded target /nix/store/dz91chvcrp5358y86xf637dxmybv6aqm-maze.png in 3.32ms -> Pixel size: [500, 500]
[LOG] hyprpaper socket started at /tmp/hypr/_1715171536_207074319/.hyprpaper.sock (fd: 4)
[ERR] Couldn't listen on the hyprpaper Socket. (3) IPC will not work.
[LOG] Buffer created for target /nix/store/dz91chvcrp5358y86xf637dxmybv6aqm-maze.png, Shared Memory usage: 14.7MB
[LOG] Total SM usage for all buffers: 14.7MB
[LOG] configure for DP-3
[LOG] handlePreferredScale: 1.00 for 160eda0
[LOG] handlePreferredScale: 1.00 for 160eda0
[LOG] Image data for DP-3: /nix/store/dz91chvcrp5358y86xf637dxmybv6aqm-maze.png at [0.00, -109.38], scale: 5.12 (original image size: [500, 500])
[LOG] Submitting viewport dest size 2560x1440 for 160eda0
[LOG] configure for DP-3
[LOG] handlePreferredScale: 1.00 for 160eda0
[LOG] handlePreferredScale: 1.00 for 160eda0
[LOG] Image data for DP-3: /nix/store/dz91chvcrp5358y86xf637dxmybv6aqm-maze.png at [0.00, -109.38], scale: 5.12 (original image size: [500, 500])
[LOG] Submitting viewport dest size 2560x1440 for 160eda0
[LOG] handlePreferredScale: 1.00 for 160eda0

Looks like maybe the Nix flake is outdated?

@vaxerski
Copy link
Member

vaxerski commented May 8, 2024

if you update hyprpaper to 0.6.0 you need to update hyprland to at least 0.40.0 for the socket to work

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
@YaroKasear
Copy link
Author

YaroKasear commented May 8, 2024

if you update hyprpaper to 0.6.0 you need to update hyprland to at least 0.40.0 for the socket to work

I am running Hyprland .40. hyprctl doesn't show that, but a look at what is installed by Nix does:

ls -l `which Hyprland`
lrwxrwxrwx - root 31 Dec  1969  /home/yaro/.nix-profile/bin/Hyprland -> /nix/store/2iwrx31j8vwxm7vnb9pvlhx5s2xl7ypv-hyprland-0.40.0+date=2024-05-08_36d3297/bin/Hyprland

hyprctl version
Hyprland, built from branch  at commit  dirty ().
Date: 
Tag: , commits: 

flags: (if any)

Not sure why hyprctl is blank.

[LOG] Welcome to hyprpaper!
built from commit v0.6.0 ()

@vaxerski
Copy link
Member

vaxerski commented May 8, 2024

then @fufexan for nix. My guess is $XDG_RUNTIME_DIR is not /run/user/xyz, in which case that was fixed in a commit a bit later, you can install hyprpaper git to verify that

@YaroKasear
Copy link
Author

YaroKasear commented May 8, 2024

then @fufexan for nix. My guess is $XDG_RUNTIME_DIR is not /run/user/xyz, in which case that was fixed in a commit a bit later, you can install hyprpaper git to verify that

echo $XDG_RUNTIME_DIR               
/run/user/1000

Not that I mean to come off as rude, but I think this would be more productive if I'm asked versions and values of environment variables rather than presuming what they are.

I'll see about installing the git version using the Flake, as I suspect I have the nixpkgs version.

@vaxerski
Copy link
Member

vaxerski commented May 8, 2024

then idk what's up and I'll wait for fufexan to say something, as nix has the weirdest issues with the filesystem structure.

Oh, wait, I misread the logs. Yes, you have hyprland 0.40.0, but hyprpaper is < 0.7.0. Update hyprpaper and it should work. You can see it's trying to connect to the old, pre-0.40 socket path:
image

@YaroKasear
Copy link
Author

then idk what's up and I'll wait for fufexan to say something, as nix has the weirdest issues with the filesystem structure.

Oh, wait, I misread the logs. Yes, you have hyprland 0.40.0, but hyprpaper is < 0.7.0. Update hyprpaper and it should work. You can see it's trying to connect to the old, pre-0.40 socket path: image

Yes, I had seen that it was looking in /tmp/hypr and not in $XDG_RUNTIME_DIR. The requirement is .7 and not .6?

Anyway, I built the git version through the Nix Flake and it's working now.

My fault for mixing the nixpkgs-unstable version of Hyprpaper with git Hyprland. I should settle on one or the other.

@vaxerski
Copy link
Member

vaxerski commented May 8, 2024

yea I made a mistake. 0.7 + 0.40.

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

2 participants