When is a wine-based Linux path used?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.pdf
used?
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
add a comment |Â
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.pdf
used?
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
add a comment |Â
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.pdf
used?
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
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.pdf
used?
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
wine
asked Mar 23 at 0:09
Tim
7,65842100167
7,65842100167
add a comment |Â
add a comment |Â
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)
add a comment |Â
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)
add a comment |Â
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)
add a comment |Â
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)
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)
answered Mar 23 at 0:32
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
![](https://i.stack.imgur.com/jLgkr.jpg?s=32&g=1)
Thomas Wardâ¦
41.5k23112166
41.5k23112166
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password