Skip to content

Add Konica Minolta magicolor 2300W driver - #13

Closed
PANKAJ955956 wants to merge 2 commits into
OpenPrinting:mainfrom
PANKAJ955956:add-m2300w-driver
Closed

Add Konica Minolta magicolor 2300W driver#13
PANKAJ955956 wants to merge 2 commits into
OpenPrinting:mainfrom
PANKAJ955956:add-m2300w-driver

Conversation

@PANKAJ955956

Copy link
Copy Markdown

Summary

This PR adds the upstream m2300w driver for Konica Minolta magicolor 2300W/2400W printers.

Changes

  • Added the m2300w driver source and build files.
  • Added PPD files for magicolor 2300W and 2400W.
  • Added Foomatic driver and printer definitions.
  • Added PostScript/color profile files.
  • Preserved the upstream driver source.

Testing

  • Verified the imported source tree and patch application.
  • Verified the branch is clean after commit.
  • Build/runtime testing is limited because the required Linux/CUPS environment is not available on Windows.

Notes

The driver source is based on the upstream m2300w 0.51 release.

@PANKAJ955956

Copy link
Copy Markdown
Author

Hi @tillkamppeter @SinghCod3r,

I’ve opened PR #13 with the upstream m2300w driver source, PPD/Foomatic files, and related build files.

The imported source and patch structure have been verified. Build/runtime testing is limited on Windows because the required Linux/CUPS environment is not available.

Please review it and, if everything looks good, merge it.

Thanks!

@SinghCod3r
SinghCod3r requested a balanced review from Copilot September 1, 2026 17:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@SinghCod3r
SinghCod3r requested review from ValdikSS and a lite review from Copilot September 1, 2026 17:43
@SinghCod3r SinghCod3r added the help wanted Extra attention is needed label Sep 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 35 out of 46 changed files in this pull request and generated 6 comments.

Suppressed comments (2)

m2300w/src/m2300w-wrapper.in:212

  • eval "$KEY='$VAL'" assigns user-controlled values via eval, which is command-injection prone (quotes/command substitutions in VAL can escape). Since only a fixed set of keys is allowed, avoid eval and assign via an explicit case.
    m2300w/src/m2300w.c:871
  • This fgets(buffer, 256, ...) should use the actual buffer size (sizeof buffer) to avoid future mismatches if buffer is resized (and to be consistent with the safer loop above).

Comment on lines +34 to +38
cat >> /tmp/m2300w.log <<EOF
#### new print job ####

Wrapper was called with command line:
$0 $@
Comment thread m2300w/src/m2300w.c
Comment on lines +764 to +768
int readHeader;
char buffer[255];


while ((fgets (buffer, 256, in_stream)) != NULL) {
Comment on lines +73 to +74
*FoomaticRIPOptionSetting PrintoutMode=Draft.Gray: "-o PrintoutMode=Dr&&
aft.Gray "
Comment on lines +73 to +74
*FoomaticRIPOptionSetting PrintoutMode=Draft.Gray: "-o PrintoutMode=Dr&&
aft.Gray "
Comment thread m2300w/src/m2300w.c Outdated
Comment thread m2300w/src/m2300w.c
Comment on lines +1372 to +1387
if (colorMode == 0xf0) {
free (stFeld[0].encBuffer);
free (stFeld[0].blockBuffer);
free (stFeld[0].pageOut);

free (stFeld[1].encBuffer);
free (stFeld[1].blockBuffer);
free (stFeld[1].pageOut);

free (stFeld[2].encBuffer);
free (stFeld[2].blockBuffer);
free (stFeld[2].pageOut);
}
free (stFeld[3].encBuffer);
free (stFeld[3].blockBuffer);
free (stFeld[3].pageOut);
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@SinghCod3r SinghCod3r closed this Sep 2, 2026
@SinghCod3r

Copy link
Copy Markdown
Collaborator

This PR doesn't allign with the contributing.md file. After reviewing throw it, i request you to look out more before pushing any commits. And changes to the file is not what we want at the legacy-driver.

@PANKAJ955956

Copy link
Copy Markdown
Author

Thanks for the feedback. I understand the issue and apologize for not checking the CONTRIBUTING.md guidelines carefully before submitting the PR.

I’ll review the contribution guidelines and existing project structure properly before making further changes. I’ll also make sure future PRs stay within the expected scope and follow the repository’s contribution requirements.

Thanks for pointing this out—I’ll take care to avoid this in future contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants