I didn’t know if anybody knew a good way to run this command at the login of XFCE?
rclone mount gdrive: /run/media/greg/Files/gDrive/ &
I also use the fish shell myself, but I have noticed that the shell is not running interactively and it’s also not the login shell (even after using chsh -s /usr/bin/fish)
Not knocking the preference or wordage (I agree that’s my best way, edit the ~/.profile file and be done with it), just made me wonder if the xfce environment path of action has any pros being it is working within it as built. Are there any pros to using ~/.profile over the xfce way? Is this just two different ways to pet a kitten?
Since I generally use .bash_profile and .bashrc (and other .bash_something scripts which I manually source from those two files), I’m not sure how .profile is read, and whether it’s read by the DE or Xorg itself, and whether all DEs treat it the same.
Oh wait, I actually have a .profile file! I didn’t realize that!
is launched at login. (obviously per-user and not system-wide)
There is also a hierarchy, it goes (in order of most important, sourcing first)
.bash_profile, .bash_login, .profile
If you want some history time … .profile is actually the oldest of them.
It comes from the older Bourne Shell
(bash being a bourne-compatible shell - AKA “bourne again shell” - it can read it)
Its for the shell.
Usually you would use it for something like environment variables … not for autostarting a program.
(unless there is a little command like echo "Hello Neo" whenever you start a terminal)
Ah, makes sense, this would be a preferable method for a user with multiple environments and one user. Or for more general env variables.
Using the xfce built-in method, makes a .desktop file which may provide easier implementation of some things. And would only be launched when user is loading xfce environment (which could probably be modified to work for various environments within the . desktop file if needed/desired). (Following the freedesktop specifications linked below by @cscs)
${XDG_CONFIG_DIRS}/autostart/
This is the location where the list of applications that should be automatically run on login is stored. Each autostarted application is represented by a .desktop file (see the Desktop Entry Specification for details).
Yeah man, I remember spending a lot of time on the websites for the Matrix, The Fifth Element, and The Pretender (NBC series). Fun times, the late nineties.
Well, I did try at least half of the suggestions that you guys tried, including the “Session and Startup”. I don’t have KDE, I use xfce, and I also use the fish shell, so the bash_profile wouldn’t work.
However, the suggestion by megavolt did work for me.