Results 1 to 7 of 7

Thread: Shortcuts for program that is run by a terminal

  1. #1
    Join Date
    Feb 2020
    Beans
    17

    Shortcuts for program that is run by a terminal

    I have installed a program called Anaconda which is a Data Science program.
    To run it I am to open a terminal and type "anaconda-navigator"

    and the program runs well.

    But I would like to have a shortcut on my desktop or my taskbar where I can click and get this running.
    I am currently running Linux Mint 19.3.

    Please help.

    Thanks

    HP

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Shortcuts for program that is run by a terminal

    The launchers on the desktop, panels, menus, docks, or whatever, are .desktop files, which are just text files with a particular structure. Using Terminal=true should open your normal terminal application and run the command you've specified in the Exec= line.
    None but ourselves can free our minds

  3. #3
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Shortcuts for program that is run by a terminal

    Thread moved to MINT a more appropriate sub-forum.

  4. #4
    Join Date
    Feb 2020
    Beans
    17

    Re: Shortcuts for program that is run by a terminal

    Thank you for the reply

    I have the following in the .desktop file
    The error i get is.. there is an error launching the application.


    Code:
    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Version=1.0
    Name=Anaconda
    Comment=Anaconda Navigator
    Exec=anaconda-navigator
    Icon=/home/hpws/Pictures/anaconda.jpg
    Terminal=true
    Type=Application
    Categories=Utility;Application;

  5. #5
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Shortcuts for program that is run by a terminal

    If anaconda-navigator isn't in your $PATH, you may have to specify the full path to launch it. You may also need to specify Path= to set the working directory to whatever your application uses.

    I don't think you need the "#!/usr/bin/env xdg-open" at the start, either.
    None but ourselves can free our minds

  6. #6
    Join Date
    Feb 2020
    Beans
    17

    Re: Shortcuts for program that is run by a terminal

    All I need is that a Terminal with a command

    Code:
    anaconda-navigator
    is executed.
    What do you think I should have in that file....

  7. #7
    Join Date
    Feb 2020
    Beans
    17

    Re: Shortcuts for program that is run by a terminal

    I got it.

    Here it is.
    Thanks


    Code:
    [Desktop Entry]
    Version=1.9.7
    Name=Anaconda
    Comment=Anaconda Navigator
    Exec=/home/hpws/anaconda3/bin/anaconda-navigator
    Icon=/home/hpws/anaconda3/bin/anaconda.jpg
    Terminal=true
    Type=Application
    Categories=Utility;Application;

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
  •