Add desktop file for linux

This commit is contained in:
zvon 2019-05-18 13:45:46 +02:00
parent 97b9d3fe27
commit 34216f1112
3 changed files with 135 additions and 0 deletions

View File

@ -2,6 +2,7 @@ CC ?= clang
CXX ?= clang++ CXX ?= clang++
CFLAGS ?= -O2 -Wall -Wextra -std=c++11 CFLAGS ?= -O2 -Wall -Wextra -std=c++11
PREFIX ?= /usr/local/bin PREFIX ?= /usr/local/bin
APPFOLDER ?= /usr/share/applications
.PHONY: default .PHONY: default
default: tv_rename default: tv_rename
@ -19,6 +20,10 @@ install: tv_rename
install_gui: gui install_gui: gui
install -d $(PREFIX)/ install -d $(PREFIX)/
install -m 755 tv_rename_gui $(PREFIX)/ install -m 755 tv_rename_gui $(PREFIX)/
cat tv_rename.desktop | sed "s/\$$PWD/$$(pwd | sed 's/\//\\\//g')/" > temp.desktop
chmod +x temp.desktop
install -d $(APPFOLDER)
mv temp.desktop $(APPFOLDER)/tv_rename.desktop
tv_rename: functions.o filesystem_u.o network.o tv_rename.o main.cpp tv_rename: functions.o filesystem_u.o network.o tv_rename.o main.cpp
$(CXX) $(CFLAGS) -o tv_rename main.cpp tv_rename.o functions.o filesystem_u.o network.o -lcurl $(CXX) $(CFLAGS) -o tv_rename main.cpp tv_rename.o functions.o filesystem_u.o network.o -lcurl

10
tv_rename.desktop Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Value=1.0
Type=Application
Name=TV Rename
GenericName=TV Rename
Comment=TV Rename
Icon=$PWD/tv_rename.svg
Exec=tv_rename_gui

120
tv_rename.svg Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="119.99982mm"
height="121.24537mm"
viewBox="0 0 119.99982 121.24537"
version="1.1"
id="svg8"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
sodipodi:docname="tvrename.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.70710678"
inkscape:cx="92.679615"
inkscape:cy="139.94547"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1025"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-48,-19.754633)">
<rect
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:2.95900011;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4518"
width="117.04082"
height="87.040817"
x="49.4795"
y="52.479683"
ry="15.234363"
rx="15.234363" />
<rect
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.95900011;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4518-3"
width="97.041"
height="67.041"
x="59.4795"
y="62.4795"
ry="15.234362"
rx="15.234363" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2"
transform="translate(-48,-19.754633)">
<path
style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="M 78.430058,32.98363 101.67757,52.070445 148.92262,21.266369"
id="path4536"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccc" />
<g
id="g4552"
transform="matrix(0.2895779,0.28957789,-0.31316804,0.31316802,72.31496,22.170558)"
style="stroke-width:2.34808373">
<path
sodipodi:nodetypes="cccc"
inkscape:connector-curvature="0"
id="path4540"
d="m 189.09319,118.46395 -4.93057,-8.53999 h 9.86038 z"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:3.52212548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path4542"
d="m 184.16262,109.92396 -9.7466,-16.881597 H 203.77 l -9.747,16.881597 z"
style="fill:none;stroke:#000000;stroke-width:3.52212548;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path4544"
d="M 174.41602,93.042 V 16.776 H 203.77 v 76.266 z"
style="fill:none;stroke:#000000;stroke-width:3.52212548;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
inkscape:connector-curvature="0"
id="path4546"
d="M 189.093,16.776 V 93.042"
style="fill:none;stroke:#000000;stroke-width:3.52212548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB