davmac314 / dinit

Service monitoring / "init" system
Apache License 2.0
620 stars 49 forks source link

When user dinit is running terminal is opened in $HOME/.config/dinit.d #290

Closed realroot2185 closed 9 months ago

realroot2185 commented 9 months ago

I set dinit for user services from ssh.

After when I open tilix, not from ssh, the working directory is $HOME/.config/dinit.d. Only if user instance of dinit is running. Same on st also.

When I ssh into the device that doesn't happen.

As a workaround I put in ~/.bashrc: cd ~.

The $HOME variable is fine.

davmac314 commented 9 months ago

I set dinit for user services from ssh.

I don't think I understand what you mean by this, sorry.

After when I open tilix, not from ssh, the working directory is $HOME/.config/dinit.d.

I assume you that you mean you open tilix from inside a desktop session that runs as a dinit service. $HOME/.config/dinit.d the default working directory for services run by dinit, and child processes (eg tilix) inherit their parent's working directory.

The working directory for a service can be changed via the working-dir = setting. See dinit-service(5) man page for details.

realroot2185 commented 9 months ago

I don't think I understand what you mean by this, sorry.

I mean that I configured things from ssh and not directly, just in case that it matters.

I opened tilix in a normal session that has dinit services. I am using dinit to run Sxmo services and I used the gesture service to open tilix.

So setting working-dir = $HOME for that service is what I need.