What do linux internet shortcuts look like (extension and contents)?












0















I don't have a linux computer currently running, and I don't remember what linux's internet shortcuts look like. I need to know, so I can create one for linux users I'm distributing content for.



What extension does linux's internet shortcut files use? What do their contents look like? Is it similar to Windows or MacOS? Do different linux distributions have different types?










share|improve this question




















  • 1





    Maybe How to create cross-platform Internet shortcut files could be useful?

    – bummi
    Jan 8 at 20:17











  • @bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

    – RWDJ
    Jan 8 at 20:18











  • Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

    – Austin Hemmelgarn
    Jan 8 at 20:38
















0















I don't have a linux computer currently running, and I don't remember what linux's internet shortcuts look like. I need to know, so I can create one for linux users I'm distributing content for.



What extension does linux's internet shortcut files use? What do their contents look like? Is it similar to Windows or MacOS? Do different linux distributions have different types?










share|improve this question




















  • 1





    Maybe How to create cross-platform Internet shortcut files could be useful?

    – bummi
    Jan 8 at 20:17











  • @bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

    – RWDJ
    Jan 8 at 20:18











  • Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

    – Austin Hemmelgarn
    Jan 8 at 20:38














0












0








0








I don't have a linux computer currently running, and I don't remember what linux's internet shortcuts look like. I need to know, so I can create one for linux users I'm distributing content for.



What extension does linux's internet shortcut files use? What do their contents look like? Is it similar to Windows or MacOS? Do different linux distributions have different types?










share|improve this question
















I don't have a linux computer currently running, and I don't remember what linux's internet shortcuts look like. I need to know, so I can create one for linux users I'm distributing content for.



What extension does linux's internet shortcut files use? What do their contents look like? Is it similar to Windows or MacOS? Do different linux distributions have different types?







linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 9 at 0:50







RWDJ

















asked Jan 8 at 20:14









RWDJRWDJ

32




32








  • 1





    Maybe How to create cross-platform Internet shortcut files could be useful?

    – bummi
    Jan 8 at 20:17











  • @bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

    – RWDJ
    Jan 8 at 20:18











  • Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

    – Austin Hemmelgarn
    Jan 8 at 20:38














  • 1





    Maybe How to create cross-platform Internet shortcut files could be useful?

    – bummi
    Jan 8 at 20:17











  • @bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

    – RWDJ
    Jan 8 at 20:18











  • Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

    – Austin Hemmelgarn
    Jan 8 at 20:38








1




1





Maybe How to create cross-platform Internet shortcut files could be useful?

– bummi
Jan 8 at 20:17





Maybe How to create cross-platform Internet shortcut files could be useful?

– bummi
Jan 8 at 20:17













@bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

– RWDJ
Jan 8 at 20:18





@bummi, indeed. I just came across that. I am still curious, though. But, yeah. I'll just use html.

– RWDJ
Jan 8 at 20:18













Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

– Austin Hemmelgarn
Jan 8 at 20:38





Note that the cross platform solution of using an HTML file is not exactly reliable. Lots of users disable JavaScript, a non-negligible percentage have automatic redirects disabled in their browsers, and some browser versions don't properly handle the <meta> tag approach when the file is opened locally.

– Austin Hemmelgarn
Jan 8 at 20:38










1 Answer
1






active

oldest

votes


















1














They take one of two forms:




  • An HTML file using either JavaScript or a <meta http-equiv='refresh' /> tag. This is dependent on a lot of factors to work right (not just on Linux, but on all platforms), namely the user has to have the file set up to open in a web browser, and they have to have whichever method you want to use enabled in their browser (users can and do have either or both disabled), and the browser has to honor it properly for file:/// URL's (most will for the JavaScript, but some don't honor the <meta> tag correctly for file:/// URL's).


  • A FreeDesktop.org Desktop Entry file (info on the exact format can be found on the FD.O site). This is the most reliable method on Linux, as i will work out of the box without issue on most distributions, and with minimum work on those it doesn't (namely, you just need to make sure that the user has execute permissions on the file).



A typical link thus looks something like this:



[Desktop Entry]
Name="example.com"
Type="Link"
URL="https://example.com"


The above file will show up with a name of 'example.com' in all major desktop environments and when double clicked will cause https://example.com to be opened in the user's preferred web browser.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392018%2fwhat-do-linux-internet-shortcuts-look-like-extension-and-contents%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    They take one of two forms:




    • An HTML file using either JavaScript or a <meta http-equiv='refresh' /> tag. This is dependent on a lot of factors to work right (not just on Linux, but on all platforms), namely the user has to have the file set up to open in a web browser, and they have to have whichever method you want to use enabled in their browser (users can and do have either or both disabled), and the browser has to honor it properly for file:/// URL's (most will for the JavaScript, but some don't honor the <meta> tag correctly for file:/// URL's).


    • A FreeDesktop.org Desktop Entry file (info on the exact format can be found on the FD.O site). This is the most reliable method on Linux, as i will work out of the box without issue on most distributions, and with minimum work on those it doesn't (namely, you just need to make sure that the user has execute permissions on the file).



    A typical link thus looks something like this:



    [Desktop Entry]
    Name="example.com"
    Type="Link"
    URL="https://example.com"


    The above file will show up with a name of 'example.com' in all major desktop environments and when double clicked will cause https://example.com to be opened in the user's preferred web browser.






    share|improve this answer




























      1














      They take one of two forms:




      • An HTML file using either JavaScript or a <meta http-equiv='refresh' /> tag. This is dependent on a lot of factors to work right (not just on Linux, but on all platforms), namely the user has to have the file set up to open in a web browser, and they have to have whichever method you want to use enabled in their browser (users can and do have either or both disabled), and the browser has to honor it properly for file:/// URL's (most will for the JavaScript, but some don't honor the <meta> tag correctly for file:/// URL's).


      • A FreeDesktop.org Desktop Entry file (info on the exact format can be found on the FD.O site). This is the most reliable method on Linux, as i will work out of the box without issue on most distributions, and with minimum work on those it doesn't (namely, you just need to make sure that the user has execute permissions on the file).



      A typical link thus looks something like this:



      [Desktop Entry]
      Name="example.com"
      Type="Link"
      URL="https://example.com"


      The above file will show up with a name of 'example.com' in all major desktop environments and when double clicked will cause https://example.com to be opened in the user's preferred web browser.






      share|improve this answer


























        1












        1








        1







        They take one of two forms:




        • An HTML file using either JavaScript or a <meta http-equiv='refresh' /> tag. This is dependent on a lot of factors to work right (not just on Linux, but on all platforms), namely the user has to have the file set up to open in a web browser, and they have to have whichever method you want to use enabled in their browser (users can and do have either or both disabled), and the browser has to honor it properly for file:/// URL's (most will for the JavaScript, but some don't honor the <meta> tag correctly for file:/// URL's).


        • A FreeDesktop.org Desktop Entry file (info on the exact format can be found on the FD.O site). This is the most reliable method on Linux, as i will work out of the box without issue on most distributions, and with minimum work on those it doesn't (namely, you just need to make sure that the user has execute permissions on the file).



        A typical link thus looks something like this:



        [Desktop Entry]
        Name="example.com"
        Type="Link"
        URL="https://example.com"


        The above file will show up with a name of 'example.com' in all major desktop environments and when double clicked will cause https://example.com to be opened in the user's preferred web browser.






        share|improve this answer













        They take one of two forms:




        • An HTML file using either JavaScript or a <meta http-equiv='refresh' /> tag. This is dependent on a lot of factors to work right (not just on Linux, but on all platforms), namely the user has to have the file set up to open in a web browser, and they have to have whichever method you want to use enabled in their browser (users can and do have either or both disabled), and the browser has to honor it properly for file:/// URL's (most will for the JavaScript, but some don't honor the <meta> tag correctly for file:/// URL's).


        • A FreeDesktop.org Desktop Entry file (info on the exact format can be found on the FD.O site). This is the most reliable method on Linux, as i will work out of the box without issue on most distributions, and with minimum work on those it doesn't (namely, you just need to make sure that the user has execute permissions on the file).



        A typical link thus looks something like this:



        [Desktop Entry]
        Name="example.com"
        Type="Link"
        URL="https://example.com"


        The above file will show up with a name of 'example.com' in all major desktop environments and when double clicked will cause https://example.com to be opened in the user's preferred web browser.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 8 at 20:36









        Austin HemmelgarnAustin Hemmelgarn

        2,67919




        2,67919






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1392018%2fwhat-do-linux-internet-shortcuts-look-like-extension-and-contents%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Сан-Квентин

            8-я гвардейская общевойсковая армия

            Алькесар