add support for directly launching windows exes from file exporer using .desktop shortcut
This commit is contained in:
parent
66f42f30cc
commit
5e217472aa
15 changed files with 440 additions and 28 deletions
|
|
@ -24,16 +24,20 @@ if [ -f "$ICON_SRC" ]; then
|
|||
fi
|
||||
|
||||
echo "2. Creating shortcut..."
|
||||
# MimeType + Exec %f: "Open with ..." in Dolphin/Nautilus lists PLWL for
|
||||
# Windows executables and hands the file path over as an argument (the
|
||||
# launcher then shows the wine/prefix picker).
|
||||
mkdir -p "$APP_DIR"
|
||||
cat > "$APP_DIR/olcxja.plwl.desktop" << EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=PLWL
|
||||
Comment=Portable Linux Wine Launcher
|
||||
Exec="$EXE"
|
||||
Exec="$EXE" %f
|
||||
Icon=olcxja.plwl
|
||||
Terminal=false
|
||||
Categories=Game;
|
||||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-msdownload;
|
||||
EOF
|
||||
chmod +x "$APP_DIR/olcxja.plwl.desktop"
|
||||
command -v update-desktop-database >/dev/null 2>&1 && update-desktop-database "$APP_DIR" 2>/dev/null || true
|
||||
|
|
|
|||
|
|
@ -40,15 +40,19 @@ if [ -f "$ICON_SRC" ]; then
|
|||
fi
|
||||
|
||||
echo "3. Creating shortcut..."
|
||||
# MimeType + Exec %f: "Open with ..." in Dolphin/Nautilus lists PLWL for
|
||||
# Windows executables and hands the file path over as an argument (the
|
||||
# launcher then shows the wine/prefix picker).
|
||||
cat > "$APP_DIR/olcxja.plwl.desktop" << EOF
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=PLWL
|
||||
Comment=Portable Linux Wine Launcher
|
||||
Exec="$EXE"
|
||||
Exec="$EXE" %f
|
||||
Icon=olcxja.plwl
|
||||
Terminal=false
|
||||
Categories=Game;
|
||||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-msdownload;
|
||||
EOF
|
||||
chmod +x "$APP_DIR/olcxja.plwl.desktop"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue