Results 1 to 4 of 4

Thread: [Ubuntu Gnome 16.04] How to start a script at each login?

  1. #1
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    [Ubuntu Gnome 16.04] How to start a script at each login?

    I've unsuccessfully tried to call it from ~/.profile.
    Any suggestion?

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: [Ubuntu Gnome 16.04] How to start a script at each login?

    What is the script and what do you expect, or want, it to do?
    It might be useful to show us the script content, removing anything personal to you that you want kept away from public view.

    Does it need to run as root? If so you will need to think again.

    Tell us in more detail everything you are trying to do and we will try to help you.

  3. #3
    Join Date
    Aug 2016
    Beans
    6

    Re: [Ubuntu Gnome 16.04] How to start a script at each login?

    Quote Originally Posted by actionmystique View Post
    I've unsuccessfully tried to call it from ~/.profile.
    Any suggestion?
    Can you clarify "unsuccessfully"? How did you try to call it? Was the script file marked executable? Was it in your current PATH, or in the same folder as `~/.profile`?

  4. #4
    Join Date
    May 2013
    Location
    Paris, France
    Beans
    174
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Re: [Ubuntu Gnome 16.04] How to start a script at each login?

    Thanks for your answers. I realized afterwards that some of the commands needed to be run as root, so it's my mistake.
    I've removed the call from ~/.profile and installed a daily cron job for the user root through gnome-schedule, rebuilt from sources since it has disappeared from the latest Ubuntu 16.04.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •