When is a wine-based Linux path used?

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








up vote
0
down vote

favorite












In a previous post, I only see pure Linux paths and pure Windows paths are used when running a Windows executable under wine.



When is a wine-based Linux path such as /home/t/.wine/dosdevices/z:/tmp/test/O.pdfused?



winepath converts a pure Linux path to a wine-based Linux path. For example,



$ echo "$(winepath /tmp/test/O.pdf)"
/home/t/.wine/dosdevices/z:/tmp/test/O.pdf


When is the output of winepath used?



Thanks.










share|improve this question

























    up vote
    0
    down vote

    favorite












    In a previous post, I only see pure Linux paths and pure Windows paths are used when running a Windows executable under wine.



    When is a wine-based Linux path such as /home/t/.wine/dosdevices/z:/tmp/test/O.pdfused?



    winepath converts a pure Linux path to a wine-based Linux path. For example,



    $ echo "$(winepath /tmp/test/O.pdf)"
    /home/t/.wine/dosdevices/z:/tmp/test/O.pdf


    When is the output of winepath used?



    Thanks.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      In a previous post, I only see pure Linux paths and pure Windows paths are used when running a Windows executable under wine.



      When is a wine-based Linux path such as /home/t/.wine/dosdevices/z:/tmp/test/O.pdfused?



      winepath converts a pure Linux path to a wine-based Linux path. For example,



      $ echo "$(winepath /tmp/test/O.pdf)"
      /home/t/.wine/dosdevices/z:/tmp/test/O.pdf


      When is the output of winepath used?



      Thanks.










      share|improve this question













      In a previous post, I only see pure Linux paths and pure Windows paths are used when running a Windows executable under wine.



      When is a wine-based Linux path such as /home/t/.wine/dosdevices/z:/tmp/test/O.pdfused?



      winepath converts a pure Linux path to a wine-based Linux path. For example,



      $ echo "$(winepath /tmp/test/O.pdf)"
      /home/t/.wine/dosdevices/z:/tmp/test/O.pdf


      When is the output of winepath used?



      Thanks.







      wine






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 0:09









      Tim

      7,65842100167




      7,65842100167




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          Digging into winepath, there's different configuration options for it.



          With regards to another related question you asked which I answered, you can use winepath to find the Windows-compatible path for a given Linux path direction.



          However, the winepath is only really useful with specific arguments passed, as the different arguments it accepts actually tell it what you are looking for.



          winepath accepts a bunch of useful arguments, of which -u and -w are most useful here. This is from the winepath manpage from the 3.4 development version of Wine:



          OPTIONS
          -u, --unix
          converts a Windows path to a Unix path.

          -w, --windows
          converts a Unix path to a long Windows path.


          With these in mind, we can get /tmp/test/0.pdf into a useful Windows path. (I'm using /tmp/blah.txt in my example though)



          Convert a Unix path to a long Windows path - what you had to do in your other question - which then is something you can pass to a Windows executable, and is based on your winecfg drive mapping (it takes a few minutes to run):



          $ winepath -w /tmp/blah.txt
          Z:tmpblah.txt


          Convert a Windows long path to a Unix filepath - the inverse of what you needed to do, but what is actually useful if you have something installed in the Wine C: drive and need to the Linux file path to the file/executable/folder/etc. This helps you if you need to edit something in a path that you're not aware of where it sits on disk, namely usually in ~/.wine/drive_c and such because there's a lot of things you might need direct folder access for. For your example, below, it's not real useful, since we know already intrinsically that Z: is mapped to / on your system. However, you can technically access the file via the full Wine Linux path below (which works, because ~/.wine/dosdevices/z: is actually just a symlink for / in your setup, and mine):



          $ winepath -u 'Z:tmptest.pdf'
          /home/teward/.wine/dosdevices/z:/tmp/test/0.pdf


          This seems to be the 'default' - it takes a Windows path and outputs the Linux equivalent for the Windows file path with regards to the existing Wine installation.




          So, TL;DR:



          Your primary use cases, therefore, are:



          • To take a Unix filesystem path and get the Windows-style path with regards to the Drive setup in your Wine Prefix; this is what you would have to enter to get the answer in the other question you posted. (since you can't use Unix paths in Windows executables' arguments, or in an Open dialog in a Wine-opened executable, since those need Windows style paths)


          • To take a Wine-based Windows path and get the corresponding Linux filesystem path so you can interact with the file in the standard Linux system directly (since you can't use Windows paths in Unix to interact with the files in the Ubuntu operating system directly)






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018400%2fwhen-is-a-wine-based-linux-path-used%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            Digging into winepath, there's different configuration options for it.



            With regards to another related question you asked which I answered, you can use winepath to find the Windows-compatible path for a given Linux path direction.



            However, the winepath is only really useful with specific arguments passed, as the different arguments it accepts actually tell it what you are looking for.



            winepath accepts a bunch of useful arguments, of which -u and -w are most useful here. This is from the winepath manpage from the 3.4 development version of Wine:



            OPTIONS
            -u, --unix
            converts a Windows path to a Unix path.

            -w, --windows
            converts a Unix path to a long Windows path.


            With these in mind, we can get /tmp/test/0.pdf into a useful Windows path. (I'm using /tmp/blah.txt in my example though)



            Convert a Unix path to a long Windows path - what you had to do in your other question - which then is something you can pass to a Windows executable, and is based on your winecfg drive mapping (it takes a few minutes to run):



            $ winepath -w /tmp/blah.txt
            Z:tmpblah.txt


            Convert a Windows long path to a Unix filepath - the inverse of what you needed to do, but what is actually useful if you have something installed in the Wine C: drive and need to the Linux file path to the file/executable/folder/etc. This helps you if you need to edit something in a path that you're not aware of where it sits on disk, namely usually in ~/.wine/drive_c and such because there's a lot of things you might need direct folder access for. For your example, below, it's not real useful, since we know already intrinsically that Z: is mapped to / on your system. However, you can technically access the file via the full Wine Linux path below (which works, because ~/.wine/dosdevices/z: is actually just a symlink for / in your setup, and mine):



            $ winepath -u 'Z:tmptest.pdf'
            /home/teward/.wine/dosdevices/z:/tmp/test/0.pdf


            This seems to be the 'default' - it takes a Windows path and outputs the Linux equivalent for the Windows file path with regards to the existing Wine installation.




            So, TL;DR:



            Your primary use cases, therefore, are:



            • To take a Unix filesystem path and get the Windows-style path with regards to the Drive setup in your Wine Prefix; this is what you would have to enter to get the answer in the other question you posted. (since you can't use Unix paths in Windows executables' arguments, or in an Open dialog in a Wine-opened executable, since those need Windows style paths)


            • To take a Wine-based Windows path and get the corresponding Linux filesystem path so you can interact with the file in the standard Linux system directly (since you can't use Windows paths in Unix to interact with the files in the Ubuntu operating system directly)






            share|improve this answer
























              up vote
              1
              down vote



              accepted










              Digging into winepath, there's different configuration options for it.



              With regards to another related question you asked which I answered, you can use winepath to find the Windows-compatible path for a given Linux path direction.



              However, the winepath is only really useful with specific arguments passed, as the different arguments it accepts actually tell it what you are looking for.



              winepath accepts a bunch of useful arguments, of which -u and -w are most useful here. This is from the winepath manpage from the 3.4 development version of Wine:



              OPTIONS
              -u, --unix
              converts a Windows path to a Unix path.

              -w, --windows
              converts a Unix path to a long Windows path.


              With these in mind, we can get /tmp/test/0.pdf into a useful Windows path. (I'm using /tmp/blah.txt in my example though)



              Convert a Unix path to a long Windows path - what you had to do in your other question - which then is something you can pass to a Windows executable, and is based on your winecfg drive mapping (it takes a few minutes to run):



              $ winepath -w /tmp/blah.txt
              Z:tmpblah.txt


              Convert a Windows long path to a Unix filepath - the inverse of what you needed to do, but what is actually useful if you have something installed in the Wine C: drive and need to the Linux file path to the file/executable/folder/etc. This helps you if you need to edit something in a path that you're not aware of where it sits on disk, namely usually in ~/.wine/drive_c and such because there's a lot of things you might need direct folder access for. For your example, below, it's not real useful, since we know already intrinsically that Z: is mapped to / on your system. However, you can technically access the file via the full Wine Linux path below (which works, because ~/.wine/dosdevices/z: is actually just a symlink for / in your setup, and mine):



              $ winepath -u 'Z:tmptest.pdf'
              /home/teward/.wine/dosdevices/z:/tmp/test/0.pdf


              This seems to be the 'default' - it takes a Windows path and outputs the Linux equivalent for the Windows file path with regards to the existing Wine installation.




              So, TL;DR:



              Your primary use cases, therefore, are:



              • To take a Unix filesystem path and get the Windows-style path with regards to the Drive setup in your Wine Prefix; this is what you would have to enter to get the answer in the other question you posted. (since you can't use Unix paths in Windows executables' arguments, or in an Open dialog in a Wine-opened executable, since those need Windows style paths)


              • To take a Wine-based Windows path and get the corresponding Linux filesystem path so you can interact with the file in the standard Linux system directly (since you can't use Windows paths in Unix to interact with the files in the Ubuntu operating system directly)






              share|improve this answer






















                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                Digging into winepath, there's different configuration options for it.



                With regards to another related question you asked which I answered, you can use winepath to find the Windows-compatible path for a given Linux path direction.



                However, the winepath is only really useful with specific arguments passed, as the different arguments it accepts actually tell it what you are looking for.



                winepath accepts a bunch of useful arguments, of which -u and -w are most useful here. This is from the winepath manpage from the 3.4 development version of Wine:



                OPTIONS
                -u, --unix
                converts a Windows path to a Unix path.

                -w, --windows
                converts a Unix path to a long Windows path.


                With these in mind, we can get /tmp/test/0.pdf into a useful Windows path. (I'm using /tmp/blah.txt in my example though)



                Convert a Unix path to a long Windows path - what you had to do in your other question - which then is something you can pass to a Windows executable, and is based on your winecfg drive mapping (it takes a few minutes to run):



                $ winepath -w /tmp/blah.txt
                Z:tmpblah.txt


                Convert a Windows long path to a Unix filepath - the inverse of what you needed to do, but what is actually useful if you have something installed in the Wine C: drive and need to the Linux file path to the file/executable/folder/etc. This helps you if you need to edit something in a path that you're not aware of where it sits on disk, namely usually in ~/.wine/drive_c and such because there's a lot of things you might need direct folder access for. For your example, below, it's not real useful, since we know already intrinsically that Z: is mapped to / on your system. However, you can technically access the file via the full Wine Linux path below (which works, because ~/.wine/dosdevices/z: is actually just a symlink for / in your setup, and mine):



                $ winepath -u 'Z:tmptest.pdf'
                /home/teward/.wine/dosdevices/z:/tmp/test/0.pdf


                This seems to be the 'default' - it takes a Windows path and outputs the Linux equivalent for the Windows file path with regards to the existing Wine installation.




                So, TL;DR:



                Your primary use cases, therefore, are:



                • To take a Unix filesystem path and get the Windows-style path with regards to the Drive setup in your Wine Prefix; this is what you would have to enter to get the answer in the other question you posted. (since you can't use Unix paths in Windows executables' arguments, or in an Open dialog in a Wine-opened executable, since those need Windows style paths)


                • To take a Wine-based Windows path and get the corresponding Linux filesystem path so you can interact with the file in the standard Linux system directly (since you can't use Windows paths in Unix to interact with the files in the Ubuntu operating system directly)






                share|improve this answer












                Digging into winepath, there's different configuration options for it.



                With regards to another related question you asked which I answered, you can use winepath to find the Windows-compatible path for a given Linux path direction.



                However, the winepath is only really useful with specific arguments passed, as the different arguments it accepts actually tell it what you are looking for.



                winepath accepts a bunch of useful arguments, of which -u and -w are most useful here. This is from the winepath manpage from the 3.4 development version of Wine:



                OPTIONS
                -u, --unix
                converts a Windows path to a Unix path.

                -w, --windows
                converts a Unix path to a long Windows path.


                With these in mind, we can get /tmp/test/0.pdf into a useful Windows path. (I'm using /tmp/blah.txt in my example though)



                Convert a Unix path to a long Windows path - what you had to do in your other question - which then is something you can pass to a Windows executable, and is based on your winecfg drive mapping (it takes a few minutes to run):



                $ winepath -w /tmp/blah.txt
                Z:tmpblah.txt


                Convert a Windows long path to a Unix filepath - the inverse of what you needed to do, but what is actually useful if you have something installed in the Wine C: drive and need to the Linux file path to the file/executable/folder/etc. This helps you if you need to edit something in a path that you're not aware of where it sits on disk, namely usually in ~/.wine/drive_c and such because there's a lot of things you might need direct folder access for. For your example, below, it's not real useful, since we know already intrinsically that Z: is mapped to / on your system. However, you can technically access the file via the full Wine Linux path below (which works, because ~/.wine/dosdevices/z: is actually just a symlink for / in your setup, and mine):



                $ winepath -u 'Z:tmptest.pdf'
                /home/teward/.wine/dosdevices/z:/tmp/test/0.pdf


                This seems to be the 'default' - it takes a Windows path and outputs the Linux equivalent for the Windows file path with regards to the existing Wine installation.




                So, TL;DR:



                Your primary use cases, therefore, are:



                • To take a Unix filesystem path and get the Windows-style path with regards to the Drive setup in your Wine Prefix; this is what you would have to enter to get the answer in the other question you posted. (since you can't use Unix paths in Windows executables' arguments, or in an Open dialog in a Wine-opened executable, since those need Windows style paths)


                • To take a Wine-based Windows path and get the corresponding Linux filesystem path so you can interact with the file in the standard Linux system directly (since you can't use Windows paths in Unix to interact with the files in the Ubuntu operating system directly)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 23 at 0:32









                Thomas Ward♦

                41.5k23112166




                41.5k23112166



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018400%2fwhen-is-a-wine-based-linux-path-used%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    pylint3 and pip3 broken

                    Missing snmpget and snmpwalk

                    How to enroll fingerprints to Ubuntu 17.10 with VFS491