Skip to main content

Automatically fix SAP GUI shortcut files (.sap) on macOS by removing malformed /M/ parameters from GuiParm connection strings

Project description

SAP GUI Shortcut Fixer for macOS

⚠️ DISCLAIMER: This entire application was AI-generated ("vibecoded") using GitHub Copilot.
While fully functional and tested, please review the code before use in production environments.

Automatically fix SAP GUI shortcut files (.sap) downloaded from SAP NetWeaver Portal on macOS by removing malformed /M/ parameters from GuiParm connection strings.

The Problem

SAP NetWeaver Portal sometimes generates .sap shortcut files with an extra /M/ prefix in the connection string:

GuiParm=/M//H/server.com/S/3200  ❌ Malformed

This prevents SAP GUI from connecting properly. This tool automatically fixes it to:

GuiParm=/H/server.com/S/3200  ✅ Fixed

Installation

pip install sapgui-shortcut-fixer-macos
sap-modifier install

Usage

sap-modifier status         # Check service status
sap-modifier test file.sap  # Test on specific file
sap-modifier logs           # View recent activity
sap-modifier uninstall      # Remove service

How It Works

Uses macOS launchd with WatchPaths to monitor Downloads folder. When a .sap shortcut file appears, it automatically fixes malformed GuiParm parameters.

Technology:

  • Event-driven monitoring (no daemon process)
  • Native macOS integration (launchd)
  • Zero dependencies (pure Python 3.10+)

What are .sap Files?

.sap files are SAP GUI shortcut files - plain-text INI files generated by SAP NetWeaver Portal that contain connection parameters for SAP GUI for Windows. They're temporary launch shortcuts, not configuration exports or transport files.

Related SAP Files (NOT handled by this tool):

  • .car/.sar - SAP kernel patches (use SAPCAR)
  • .sda - Java deployment archives (use SDM)
  • .epa - Portal content exports

Development

pip install -e ".[dev]"
pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sapgui_shortcut_fixer_macos-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file sapgui_shortcut_fixer_macos-0.1.0.tar.gz.

File metadata

File hashes

Hashes for sapgui_shortcut_fixer_macos-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00e2103679834a3df9ab927d2ee7fd7a660ad9f2aa4cacfaf994f49e93dd30ab
MD5 c9fdc25b0aaf83cc5c7fac5586633a8e
BLAKE2b-256 5f5c2999c0f6fdf4180ac1aa278c43d62ffc63f780f9d7d8ea93f18ceae1ad4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for sapgui_shortcut_fixer_macos-0.1.0.tar.gz:

Publisher: release.yml on nicornk/sapgui-shortcut-fixer-macos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df8a61cba7cee7db98ee36ad39e67dcb841864ad4ef87a936b279b3e57149188
MD5 42bca8812d2a5d35278efb5b4bd06ed7
BLAKE2b-256 a3ea372de808006ff6585a31c88bfcb94c25e0b09f40be0e5135fa09ec821bae

See more details on using hashes here.

Provenance

The following attestation bundles were made for sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl:

Publisher: release.yml on nicornk/sapgui-shortcut-fixer-macos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page