Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 3rd July 2023, 02:24   #1  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 5,072
Linux, Wine and shortcuts

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):

Code:
[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:

Code:
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.

Code:
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:

Code:
[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.

Last edited by hello_hello; 3rd July 2023 at 02:32.
hello_hello is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.