Add .desktop file to install
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -90,3 +90,4 @@ ENV/
|
|||||||
.ropeproject
|
.ropeproject
|
||||||
|
|
||||||
.idea
|
.idea
|
||||||
|
install.txt
|
||||||
|
|||||||
@@ -49,9 +49,9 @@ class Handlers:
|
|||||||
"Importing a library will override your current library. "
|
"Importing a library will override your current library. "
|
||||||
"Proceed?")
|
"Proceed?")
|
||||||
if override_question == Gtk.ResponseType.YES:
|
if override_question == Gtk.ResponseType.YES:
|
||||||
(library, tags) = util.import_library(dialog.get_filename())
|
imports = util.import_library(dialog.get_filename())
|
||||||
self.app.library = library
|
self.app.library = imports[0]
|
||||||
self.app.tags = tags
|
self.app.tags = imports[1]
|
||||||
# Cause current page to reload with imported data
|
# Cause current page to reload with imported data
|
||||||
self.app.current_page.emit('show')
|
self.app.current_page.emit('show')
|
||||||
self.app.unsaved_changes = True
|
self.app.unsaved_changes = True
|
||||||
|
|||||||
8
cardvault/resources/cardvault.desktop
Normal file
8
cardvault/resources/cardvault.desktop
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=0.5
|
||||||
|
Type=Application
|
||||||
|
Name=Card Vault
|
||||||
|
Comment=Oraganize and plan your MTG card collection
|
||||||
|
TryExec=cardvault
|
||||||
|
Exec=cardvault %F
|
||||||
|
Icon=application-x-executable
|
||||||
@@ -209,7 +209,8 @@ def import_library(path):
|
|||||||
tags = imported["tags"]
|
tags = imported["tags"]
|
||||||
except KeyError as err:
|
except KeyError as err:
|
||||||
log("Invalid library format " + str(err), LogLevel.Error)
|
log("Invalid library format " + str(err), LogLevel.Error)
|
||||||
return
|
library = {}
|
||||||
|
tags = {}
|
||||||
|
|
||||||
log("Library imported", LogLevel.Info)
|
log("Library imported", LogLevel.Info)
|
||||||
return (library, tags)
|
return (library, tags)
|
||||||
|
|||||||
3
setup.cfg
Normal file
3
setup.cfg
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[install]
|
||||||
|
single-version-externally-managed=1
|
||||||
|
record=install.txt
|
||||||
5
setup.py
5
setup.py
@@ -12,9 +12,12 @@ setup(
|
|||||||
version=util.VERSION,
|
version=util.VERSION,
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
|
|
||||||
# install_requires=['pygobject'],
|
|
||||||
package_data={'cardvault': ['resources/images/*', 'resources/mana/*', 'gui/*']},
|
package_data={'cardvault': ['resources/images/*', 'resources/mana/*', 'gui/*']},
|
||||||
|
|
||||||
|
data_files=[
|
||||||
|
#('share/icons/hicolor/scalable/apps', ['data/mypackage.svg']),
|
||||||
|
('share/applications', ['cardvault/resources/cardvault.desktop'])],
|
||||||
|
|
||||||
author='luxick',
|
author='luxick',
|
||||||
author_email='cardvoult@luxick.de',
|
author_email='cardvoult@luxick.de',
|
||||||
description='Managing MTG card libraries and decks',
|
description='Managing MTG card libraries and decks',
|
||||||
|
|||||||
Reference in New Issue
Block a user