hello_hello
3rd July 2023, 02:24
Any Linux experts out there?
I'm new to Linux but I've been experimenting with Wine and finally had a reasonable amount of success running the Windows programs I'd like to keep using for the moment.
Creating start menu shortcuts was a challenge initially, but I seem to have it sorted now with one exception. The desktop files I've created don't work when added to the file manager's sendto folder because the file path looks like a command to most programs. The same applies to using the "open with" menu.
Here's a typical desktop file (created manually):
[Desktop Entry]
Name=MPC-HC
Comment=
Type=Application
Categories=AudioVideo;Player;
Icon=/home/Me/.local/share/icons/MPC-HC.png
Exec=env WINEPREFIX="/home/Me/.local/share/wineprefixes/Win64" wine "/home/Me/.local/share/wineprefixes/Win64/drive_c/Program Files/MPC-HC/mpc-hc64.exe" %f
and here's the error message MPC-HC displays when opening a file with sendto:
Unrecognised switch(es) found in command line string:
C:\Program Files\MPC-HC\mpc-hc64.exe /media/NVME1/video.mkv
I've created a drive labelled "M" in Wine with the target "/media", so I'm wondering if there's a way to turn %f into windows-speak so the result would be this instead.
C:\Program Files\MPC-HC\mpc-hc64.exe M:\NVME1\video.mkv
Cheers.
PS Desktop files created by PlayOnLinux work fine as sendto items, but PlayOnLinux is obviously taking care of the translation. The desktop file it created for MPC-HC (I've modified it a little) looks like this:
[Desktop Entry]
Encoding=UTF-8
Name=MPC-HC
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "MPC-HC" %F
Icon=/home/Me/.PlayOnLinux//icones/full_size/MPC-HC
StartupWMClass=mpc-hc64.exe
Categories=AudioVideo;Player;
Cheers.
I'm new to Linux but I've been experimenting with Wine and finally had a reasonable amount of success running the Windows programs I'd like to keep using for the moment.
Creating start menu shortcuts was a challenge initially, but I seem to have it sorted now with one exception. The desktop files I've created don't work when added to the file manager's sendto folder because the file path looks like a command to most programs. The same applies to using the "open with" menu.
Here's a typical desktop file (created manually):
[Desktop Entry]
Name=MPC-HC
Comment=
Type=Application
Categories=AudioVideo;Player;
Icon=/home/Me/.local/share/icons/MPC-HC.png
Exec=env WINEPREFIX="/home/Me/.local/share/wineprefixes/Win64" wine "/home/Me/.local/share/wineprefixes/Win64/drive_c/Program Files/MPC-HC/mpc-hc64.exe" %f
and here's the error message MPC-HC displays when opening a file with sendto:
Unrecognised switch(es) found in command line string:
C:\Program Files\MPC-HC\mpc-hc64.exe /media/NVME1/video.mkv
I've created a drive labelled "M" in Wine with the target "/media", so I'm wondering if there's a way to turn %f into windows-speak so the result would be this instead.
C:\Program Files\MPC-HC\mpc-hc64.exe M:\NVME1\video.mkv
Cheers.
PS Desktop files created by PlayOnLinux work fine as sendto items, but PlayOnLinux is obviously taking care of the translation. The desktop file it created for MPC-HC (I've modified it a little) looks like this:
[Desktop Entry]
Encoding=UTF-8
Name=MPC-HC
Comment=PlayOnLinux
Type=Application
Exec=/usr/share/playonlinux/playonlinux --run "MPC-HC" %F
Icon=/home/Me/.PlayOnLinux//icones/full_size/MPC-HC
StartupWMClass=mpc-hc64.exe
Categories=AudioVideo;Player;
Cheers.