Skip to content

Commit ec02287

Browse files
authored
Merge pull request #4 from ValdikSS/names
PPD NickNames
2 parents e6408fa + f6f2ae7 commit ec02287

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

captbackend/Core/PrinterInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ void PrinterInfo::Report(std::ostream& stream) const {
107107
// so that backends can be distinguished in the CUPS web UI.
108108
stream << "direct "; // device-class
109109
this->WriteUri(stream) << ' '; // uri
110-
stream << '"' << this->Manufacturer << ' ' << this->Model << " (" CAPTBACKEND_NAME ")\" "; // device-make-and-model/description
111-
stream << '"' << this->Manufacturer << ' ' << this->Model << '"' << ' '; // device-info/name
110+
stream << '"' << this->Manufacturer << ' ' << this->Model << '"' << ' '; // device-make-and-model
111+
stream << '"' << this->Manufacturer << ' ' << this->Model << "(" CAPTBACKEND_NAME ")\" "; // device-info/name
112112
stream << '"' << this->DeviceId << '"'; // device-id
113113
stream << " \"\""; // device-location
114114
stream << std::endl;

ppd/captppd.drv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,24 @@ Option "cupsHalftoneType/Dithering type" PickOne AnySetup 40
5757
#endif
5858

5959
{
60-
ModelName "LBP800"
61-
Attribute "NickName" "" "Canon LBP800, captppd $CAPTBACKEND_VERSION"
60+
ModelName "LBP-800"
61+
Attribute "NickName" "" "Canon LBP-800, captppd $CAPTBACKEND_VERSION"
6262
Throughput 8
6363
Attribute "1284DeviceID" "" "MFG:Canon;MDL:LBP-800;CMD:CAPT;VER:1.0;CLS:PRINTER;DES:Canon LBP-800" // assumed from LBP810
6464
PCFileName "LBP800CAPTPPD.ppd"
6565
}
6666

6767
{
68-
ModelName "LBP810"
69-
Attribute "NickName" "" "Canon LBP810, captppd $CAPTBACKEND_VERSION"
68+
ModelName "LBP-810"
69+
Attribute "NickName" "" "Canon LBP-810, captppd $CAPTBACKEND_VERSION"
7070
Throughput 8
7171
Attribute "1284DeviceID" "" "MFG:Canon;MDL:LBP-810;CMD:CAPT;VER:1.0;CLS:PRINTER;DES:Canon LBP-810"
7272
PCFileName "LBP810CAPTPPD.ppd"
7373
}
7474

7575
{
76-
ModelName "LBP1120"
77-
Attribute "NickName" "" "Canon LBP1120, captppd $CAPTBACKEND_VERSION"
76+
ModelName "LASER SHOT LBP-1120"
77+
Attribute "NickName" "" "Canon LASER SHOT LBP-1120, captppd $CAPTBACKEND_VERSION"
7878
Throughput 10
7979
Attribute "1284DeviceID" "" "MFG:Canon;MDL:LASER SHOT LBP-1120;CMD:CAPT;VER:1.0;CLS:PRINTER;DES:Canon LASER SHOT LBP-1120"
8080
PCFileName "LBP1120CAPTPPD.ppd"

0 commit comments

Comments
 (0)