Skip to content

Commit 4a18b9d

Browse files
author
Matteljay
committed
small tweaks, icon pixmaps fix
1 parent a8067ad commit 4a18b9d

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

CONTACT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Donate if you find this app useful, educational or you like to motivate more pro
1515

1616
## Other methods
1717

18-
Please contact me if you want to use PayPal, bank transfer or other methods.
18+
Please contact me for other channels.
1919

2020

data/labelpush.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Name=LabelPush
44
Comment=Lightweight label printing app
55
Exec=labelpush.py
66
Terminal=false
7-
Icon=/usr/share/icons/hicolor/256x256/apps/labelpush.png
7+
Icon=labelpush
88
Categories=Office;
99
Encoding=UTF-8
1010

labelpush.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2525
# SOFTWARE.
2626
#
27-
# Release version: 2018.10.26
27+
# Release version: 2018.10.27
2828
# Donate if you find this app useful, educational or you like to motivate more projects like this.
2929
#
3030
# XMR: 4B6YQvbL9jqY3r1cD3ZvrDgGrRpKvifuLVb5cQnYZtapWUNovde7K5rc1LVGw3HhmTiijX21zHKSqjQtwxesBEe6FhufRGS
@@ -70,7 +70,12 @@
7070
import shutil
7171

7272
name = 'labelpush'
73-
def_iconfiles = [ os.path.join(sys.prefix, 'share/icons/hicolor/256x256/apps/labelpush.png'), 'data/labelpush.png', 'labelpush.png' ]
73+
def_iconfiles = [
74+
os.path.join(sys.prefix, 'local/share/pixmaps/labelpush.png'),
75+
os.path.join(sys.prefix, 'share/pixmaps/labelpush.png'),
76+
'data/labelpush.png',
77+
'labelpush.png',
78+
]
7479
def_defaultcfg = {
7580
'lpname': 'default', # printer name
7681
'labw': 637, # labelwidth

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
# requirements Mint/Ubuntu/Debian: sudo apt-get install python3-pip python3-dev libgl1-mesa-dev xsel
33
# to build packages, invoke this script: ./setup.py bdist bdist_wheel
44
# to install directly, invoke via pip: sudo pip3 install .
5+
# to generate a whl file: ./setup.py bdist_wheel
56
#
67

78
import setuptools
89
import re
910
import sys
10-
import os
1111
mainscript = 'labelpush.py'
1212

1313
with open('requirements.txt') as fh:
@@ -27,8 +27,6 @@
2727
print('ERROR: Could not extract version from ' + mainscript, file=sys.stderr)
2828
sys.exit(1)
2929

30-
os.environ['PYTHONUSERBASE'] = '/usr'
31-
3230
setuptools.setup(
3331
name = 'labelpush',
3432
version = extracted_version,
@@ -47,7 +45,7 @@
4745
'Operating System :: OS Independent',
4846
],
4947
data_files = [
50-
('share/icons/hicolor/256x256/apps', ['data/labelpush.png']),
48+
('share/pixmaps', ['data/labelpush.png']),
5149
('share/applications', ['data/labelpush.desktop']),
5250
],
5351
)

0 commit comments

Comments
 (0)