Where does Linux get information on what to open from? [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












For example I have a menu when I right-click. In it, I can see 'open terminal'.



But where does Linux get the information about what to open and how can I change it to a custom option?







share|improve this question













closed as unclear what you're asking by sebasth, JdeBP, Archemar, nwildner, G-Man Jun 27 at 3:39


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
    – terdon♦
    Jun 26 at 12:05










  • You might want to have a look at mime types.
    – Kevin Lemaire
    Jun 26 at 12:18














up vote
1
down vote

favorite












For example I have a menu when I right-click. In it, I can see 'open terminal'.



But where does Linux get the information about what to open and how can I change it to a custom option?







share|improve this question













closed as unclear what you're asking by sebasth, JdeBP, Archemar, nwildner, G-Man Jun 27 at 3:39


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
    – terdon♦
    Jun 26 at 12:05










  • You might want to have a look at mime types.
    – Kevin Lemaire
    Jun 26 at 12:18












up vote
1
down vote

favorite









up vote
1
down vote

favorite











For example I have a menu when I right-click. In it, I can see 'open terminal'.



But where does Linux get the information about what to open and how can I change it to a custom option?







share|improve this question













For example I have a menu when I right-click. In it, I can see 'open terminal'.



But where does Linux get the information about what to open and how can I change it to a custom option?









share|improve this question












share|improve this question




share|improve this question








edited Jun 26 at 12:03









terdon♦

122k28226398




122k28226398









asked Jun 26 at 11:58









TrueBad0ur

483




483




closed as unclear what you're asking by sebasth, JdeBP, Archemar, nwildner, G-Man Jun 27 at 3:39


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by sebasth, JdeBP, Archemar, nwildner, G-Man Jun 27 at 3:39


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
    – terdon♦
    Jun 26 at 12:05










  • You might want to have a look at mime types.
    – Kevin Lemaire
    Jun 26 at 12:18












  • 2




    Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
    – terdon♦
    Jun 26 at 12:05










  • You might want to have a look at mime types.
    – Kevin Lemaire
    Jun 26 at 12:18







2




2




Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
– terdon♦
Jun 26 at 12:05




Hi and welcome to the site. Please edit your question and give us some more context. Where do you see this menu? When you right click on what? In what program? Using what Linux distribution? What desktop environment? This isn't a Linux feature, it will be specific to whatever set of tools you are using.
– terdon♦
Jun 26 at 12:05












You might want to have a look at mime types.
– Kevin Lemaire
Jun 26 at 12:18




You might want to have a look at mime types.
– Kevin Lemaire
Jun 26 at 12:18










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










"Linux" by itself is just a kernel and does not need to know. It is the graphical environment which is usually launching a runner, which then again launches the application.



XDG



Only the runner needs to know what to "do". Most graphical environment runners understand and use the XDG Desktop Entry specification. A more easy read on the subject would be the Arch linux wiki page. Like most freedesktop specifications, you will find that the syntax is very similar to windows' *.ini files.



Quotes



These qoutes are extracted from the arch wiki page, linked above. They hopefully summarize enough to give you the answer you are looking for.




Application entry



Desktop entries for applications, or .desktop files, are generally a
combination of meta information resources and a shortcut of an
application. These files usually reside in /usr/share/applications or
/usr/local/share/applications for applications installed system-wide,
or ~/.local/share/applications for user-specific applications. User
entries take precedence over system entries.




Example file contents




[Desktop Entry]

# The type as listed above
Type=Application

# The version of the desktop entry specification to which this file complies
Version=1.0

# The name of the application
Name=jMemorize

# A comment which can/will be used as a tooltip
Comment=Flash card based learning tool

# The path to the folder in which the executable is run
Path=/opt/jmemorise

# The executable of the application, possibly with arguments.
Exec=jmemorize

# The name of the icon that will be used to display this entry
Icon=jmemorize

# Describes whether this application needs to be run in a terminal or not
Terminal=false

# Describes the categories in which this entry should be shown
Categories=Education;Languages;Java;



Run in terminal option



Some runners allow for "Run in terminal" option. In that case, the runner actually executes the default terminal (konsole for KDE, gnome-terminal for gnome) and appends the program's name to the terminal. For example for konsole with the -e option would run a command instead of the configured shell:



konsole -e command


Usually the runner will use .desktop files for both the terminal and the application to establish their execution commands.






share|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    "Linux" by itself is just a kernel and does not need to know. It is the graphical environment which is usually launching a runner, which then again launches the application.



    XDG



    Only the runner needs to know what to "do". Most graphical environment runners understand and use the XDG Desktop Entry specification. A more easy read on the subject would be the Arch linux wiki page. Like most freedesktop specifications, you will find that the syntax is very similar to windows' *.ini files.



    Quotes



    These qoutes are extracted from the arch wiki page, linked above. They hopefully summarize enough to give you the answer you are looking for.




    Application entry



    Desktop entries for applications, or .desktop files, are generally a
    combination of meta information resources and a shortcut of an
    application. These files usually reside in /usr/share/applications or
    /usr/local/share/applications for applications installed system-wide,
    or ~/.local/share/applications for user-specific applications. User
    entries take precedence over system entries.




    Example file contents




    [Desktop Entry]

    # The type as listed above
    Type=Application

    # The version of the desktop entry specification to which this file complies
    Version=1.0

    # The name of the application
    Name=jMemorize

    # A comment which can/will be used as a tooltip
    Comment=Flash card based learning tool

    # The path to the folder in which the executable is run
    Path=/opt/jmemorise

    # The executable of the application, possibly with arguments.
    Exec=jmemorize

    # The name of the icon that will be used to display this entry
    Icon=jmemorize

    # Describes whether this application needs to be run in a terminal or not
    Terminal=false

    # Describes the categories in which this entry should be shown
    Categories=Education;Languages;Java;



    Run in terminal option



    Some runners allow for "Run in terminal" option. In that case, the runner actually executes the default terminal (konsole for KDE, gnome-terminal for gnome) and appends the program's name to the terminal. For example for konsole with the -e option would run a command instead of the configured shell:



    konsole -e command


    Usually the runner will use .desktop files for both the terminal and the application to establish their execution commands.






    share|improve this answer

























      up vote
      4
      down vote



      accepted










      "Linux" by itself is just a kernel and does not need to know. It is the graphical environment which is usually launching a runner, which then again launches the application.



      XDG



      Only the runner needs to know what to "do". Most graphical environment runners understand and use the XDG Desktop Entry specification. A more easy read on the subject would be the Arch linux wiki page. Like most freedesktop specifications, you will find that the syntax is very similar to windows' *.ini files.



      Quotes



      These qoutes are extracted from the arch wiki page, linked above. They hopefully summarize enough to give you the answer you are looking for.




      Application entry



      Desktop entries for applications, or .desktop files, are generally a
      combination of meta information resources and a shortcut of an
      application. These files usually reside in /usr/share/applications or
      /usr/local/share/applications for applications installed system-wide,
      or ~/.local/share/applications for user-specific applications. User
      entries take precedence over system entries.




      Example file contents




      [Desktop Entry]

      # The type as listed above
      Type=Application

      # The version of the desktop entry specification to which this file complies
      Version=1.0

      # The name of the application
      Name=jMemorize

      # A comment which can/will be used as a tooltip
      Comment=Flash card based learning tool

      # The path to the folder in which the executable is run
      Path=/opt/jmemorise

      # The executable of the application, possibly with arguments.
      Exec=jmemorize

      # The name of the icon that will be used to display this entry
      Icon=jmemorize

      # Describes whether this application needs to be run in a terminal or not
      Terminal=false

      # Describes the categories in which this entry should be shown
      Categories=Education;Languages;Java;



      Run in terminal option



      Some runners allow for "Run in terminal" option. In that case, the runner actually executes the default terminal (konsole for KDE, gnome-terminal for gnome) and appends the program's name to the terminal. For example for konsole with the -e option would run a command instead of the configured shell:



      konsole -e command


      Usually the runner will use .desktop files for both the terminal and the application to establish their execution commands.






      share|improve this answer























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        "Linux" by itself is just a kernel and does not need to know. It is the graphical environment which is usually launching a runner, which then again launches the application.



        XDG



        Only the runner needs to know what to "do". Most graphical environment runners understand and use the XDG Desktop Entry specification. A more easy read on the subject would be the Arch linux wiki page. Like most freedesktop specifications, you will find that the syntax is very similar to windows' *.ini files.



        Quotes



        These qoutes are extracted from the arch wiki page, linked above. They hopefully summarize enough to give you the answer you are looking for.




        Application entry



        Desktop entries for applications, or .desktop files, are generally a
        combination of meta information resources and a shortcut of an
        application. These files usually reside in /usr/share/applications or
        /usr/local/share/applications for applications installed system-wide,
        or ~/.local/share/applications for user-specific applications. User
        entries take precedence over system entries.




        Example file contents




        [Desktop Entry]

        # The type as listed above
        Type=Application

        # The version of the desktop entry specification to which this file complies
        Version=1.0

        # The name of the application
        Name=jMemorize

        # A comment which can/will be used as a tooltip
        Comment=Flash card based learning tool

        # The path to the folder in which the executable is run
        Path=/opt/jmemorise

        # The executable of the application, possibly with arguments.
        Exec=jmemorize

        # The name of the icon that will be used to display this entry
        Icon=jmemorize

        # Describes whether this application needs to be run in a terminal or not
        Terminal=false

        # Describes the categories in which this entry should be shown
        Categories=Education;Languages;Java;



        Run in terminal option



        Some runners allow for "Run in terminal" option. In that case, the runner actually executes the default terminal (konsole for KDE, gnome-terminal for gnome) and appends the program's name to the terminal. For example for konsole with the -e option would run a command instead of the configured shell:



        konsole -e command


        Usually the runner will use .desktop files for both the terminal and the application to establish their execution commands.






        share|improve this answer













        "Linux" by itself is just a kernel and does not need to know. It is the graphical environment which is usually launching a runner, which then again launches the application.



        XDG



        Only the runner needs to know what to "do". Most graphical environment runners understand and use the XDG Desktop Entry specification. A more easy read on the subject would be the Arch linux wiki page. Like most freedesktop specifications, you will find that the syntax is very similar to windows' *.ini files.



        Quotes



        These qoutes are extracted from the arch wiki page, linked above. They hopefully summarize enough to give you the answer you are looking for.




        Application entry



        Desktop entries for applications, or .desktop files, are generally a
        combination of meta information resources and a shortcut of an
        application. These files usually reside in /usr/share/applications or
        /usr/local/share/applications for applications installed system-wide,
        or ~/.local/share/applications for user-specific applications. User
        entries take precedence over system entries.




        Example file contents




        [Desktop Entry]

        # The type as listed above
        Type=Application

        # The version of the desktop entry specification to which this file complies
        Version=1.0

        # The name of the application
        Name=jMemorize

        # A comment which can/will be used as a tooltip
        Comment=Flash card based learning tool

        # The path to the folder in which the executable is run
        Path=/opt/jmemorise

        # The executable of the application, possibly with arguments.
        Exec=jmemorize

        # The name of the icon that will be used to display this entry
        Icon=jmemorize

        # Describes whether this application needs to be run in a terminal or not
        Terminal=false

        # Describes the categories in which this entry should be shown
        Categories=Education;Languages;Java;



        Run in terminal option



        Some runners allow for "Run in terminal" option. In that case, the runner actually executes the default terminal (konsole for KDE, gnome-terminal for gnome) and appends the program's name to the terminal. For example for konsole with the -e option would run a command instead of the configured shell:



        konsole -e command


        Usually the runner will use .desktop files for both the terminal and the application to establish their execution commands.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 26 at 14:10









        Tim

        463211




        463211












            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay