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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sapgui_shortcut_fixer_macos-0.1.0.tar.gz.
File metadata
- Download URL: sapgui_shortcut_fixer_macos-0.1.0.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00e2103679834a3df9ab927d2ee7fd7a660ad9f2aa4cacfaf994f49e93dd30ab
|
|
| MD5 |
c9fdc25b0aaf83cc5c7fac5586633a8e
|
|
| BLAKE2b-256 |
5f5c2999c0f6fdf4180ac1aa278c43d62ffc63f780f9d7d8ea93f18ceae1ad4e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sapgui_shortcut_fixer_macos-0.1.0.tar.gz -
Subject digest:
00e2103679834a3df9ab927d2ee7fd7a660ad9f2aa4cacfaf994f49e93dd30ab - Sigstore transparency entry: 592254279
- Sigstore integration time:
-
Permalink:
nicornk/sapgui-shortcut-fixer-macos@5478fdd36fc6929eb3c794709946416557978b60 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nicornk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5478fdd36fc6929eb3c794709946416557978b60 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df8a61cba7cee7db98ee36ad39e67dcb841864ad4ef87a936b279b3e57149188
|
|
| MD5 |
42bca8812d2a5d35278efb5b4bd06ed7
|
|
| BLAKE2b-256 |
a3ea372de808006ff6585a31c88bfcb94c25e0b09f40be0e5135fa09ec821bae
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sapgui_shortcut_fixer_macos-0.1.0-py3-none-any.whl -
Subject digest:
df8a61cba7cee7db98ee36ad39e67dcb841864ad4ef87a936b279b3e57149188 - Sigstore transparency entry: 592254280
- Sigstore integration time:
-
Permalink:
nicornk/sapgui-shortcut-fixer-macos@5478fdd36fc6929eb3c794709946416557978b60 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/nicornk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5478fdd36fc6929eb3c794709946416557978b60 -
Trigger Event:
release
-
Statement type: