glabels-qt icon indicating copy to clipboard operation
glabels-qt copied to clipboard

Feature Request: A way to export label format

Open mofosyne opened this issue 6 months ago • 6 comments

Been trying to figure out a way to find the custom label format so I can add it to glabel-qt pull request.

Haven't had much luck.

Also got me thinking about the difficulties of submitting label improvements.

Maybe we should have a separate way where non technical users can submit label format suggestions

mofosyne avatar May 11 '25 16:05 mofosyne

I am assuming you mean product templates. The product template format is described here. When you create a product template using the Product Template Designer wizard in qlabels-qt, the resulting template is stored at ~/.config/glabels.org/glabels-qt. If you wish to manually create them, put them in ~/.glabels.

j-evins avatar May 14 '25 18:05 j-evins

@j-evins decided to check your suggestions, no luck... that being said making it easier for non technical users to send templates would help with expanding the label template database.

$ ls ~/.config/glabels.org/glabels-qt
ls: cannot access '/home/mofosyne/.config/glabels.org/glabels-qt': No such file or directory
$ ls ~/.glabels
ls: cannot access '/home/mofosyne/.glabels': No such file or directory

This is my dpkg package version if that would help.

$ dpkg -s glabels
Package: glabels
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 1158
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 3.4.1-4build3
Provides: libglabels5
Depends: glabels-data (= 3.4.1-4build3), barcode (>= 0.99), libc6 (>= 2.38), libcairo2 (>= 1.2.4), libebook-1.2-21t64 (>= 3.17), libebook-contacts-1.2-4t64 (>= 3.16.2), libedataserver-1.2-27t64 (>= 3.17), libgdk-pixbuf-2.0-0 (>= 2.22.0), libglib2.0-0t64 (>= 2.79.0), libgtk-3-0t64 (>= 3.0.0), libiec16022-0 (>= 0.2.4), libpango-1.0-0 (>= 1.22.0), libpangocairo-1.0-0 (>= 1.14.0), libqrencode4 (>= 3.2.0), librsvg2-2 (>= 2.14.4), libxml2 (>= 2.7.4)
Recommends: evince | atril
Suggests: evolution-data-server
Description: label, business card and media cover creation program for GNOME
 gLabels is a lightweight program for creating labels, barcodes, business
 cards and media covers for the GNOME desktop environment. It is designed to
 work with various laser/ink-jet peel-off label and business card sheets that
 you'll find at most office supply stores.
 .
 gLabels also supports mail merge from sources such as CSV files, vCards and
 Evolution data servers.
Homepage: http://glabels.org/
Original-Maintainer: Jakob Haufe <[email protected]>

mofosyne avatar May 19 '25 10:05 mofosyne

I see -- you are using the old GTK version of glabels -- I do not currently work on it, and haven't worked on it in nearly 10 years. For that version, you should be able to find the template files you created using the wizard in the ~/.config/libglabels/templates/ directory.

j-evins avatar May 19 '25 15:05 j-evins

Oh is that so? I wonder why the ubuntu package repository is so old. Maybe I should poke Ubuntu Developers [email protected] about this. My understanding that at least for ubuntu, that the apt repository is the official channel for glabels

mofosyne avatar May 20 '25 09:05 mofosyne

No reason to poke them. Given Jaye is able to work on glabels-qt again I will continue my efforts to package glabels-qt for Debian which will make it to Ubuntu automatically.

sur5r avatar May 20 '25 09:05 sur5r

Fair enough, looking forward to the official apt package update.

That being said. Making it as easy as possible for ordinary office workers to contribute via a "send template suggestion" button would certainly be something to consider in my opinion! As long as it's not too much effort to maintain on your end.

For now, i presume the preferred method of template contributions is via a pull request to the corresponding folder. (Edit: PR now in https://github.com/j-evins/glabels-qt/pull/211 . Thanks for the path tip of ~/.config/glabels.org/glabels-qt )

mofosyne avatar May 20 '25 11:05 mofosyne