Hi,

On 8/23/20 7:36 PM, Nicholas Eckardt wrote:
>    * What led up to the situation?
>       Logging into sway, my changes to $PATH were not run. 
>    * What exactly did you do (or not do) that was effective (or
>      ineffective)?
>       I set .profile to create a new file when run.
>    * What was the outcome of this action? 
>        This file is created in GNOME, but not created in sway. 
>    * What outcome did you expect instead?
>       I expected the file to be created in both GNOME and sway,
>       thus indicating that .profile ran. 


the `.profile` file is the configuration file for the bourne shell. It
is usually not run on login in graphical environments, so GNOME seems to
be special in that way. But you can configure sway to run the file by
adding an exec statement to your swaywm config:
`exec sh ~/.profile` or something similar should work.

For setting environment variables like $PATH there are different
approaches how to set them when starting sway, [0] lists some of them.

[0]
https://www.reddit.com/r/swaywm/comments/gpzqcg/set_environment_variables/

cheers,
Birger

Reply via email to