Add .desktop file to install
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -89,4 +89,5 @@ ENV/
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
.idea
|
||||
.idea
|
||||
install.txt
|
||||
|
||||
@@ -49,9 +49,9 @@ class Handlers:
|
||||
"Importing a library will override your current library. "
|
||||
"Proceed?")
|
||||
if override_question == Gtk.ResponseType.YES:
|
||||
(library, tags) = util.import_library(dialog.get_filename())
|
||||
self.app.library = library
|
||||
self.app.tags = tags
|
||||
imports = util.import_library(dialog.get_filename())
|
||||
self.app.library = imports[0]
|
||||
self.app.tags = imports[1]
|
||||
# Cause current page to reload with imported data
|
||||
self.app.current_page.emit('show')
|
||||
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"]
|
||||
except KeyError as err:
|
||||
log("Invalid library format " + str(err), LogLevel.Error)
|
||||
return
|
||||
library = {}
|
||||
tags = {}
|
||||
|
||||
log("Library imported", LogLevel.Info)
|
||||
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,
|
||||
packages=find_packages(),
|
||||
|
||||
# install_requires=['pygobject'],
|
||||
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_email='cardvoult@luxick.de',
|
||||
description='Managing MTG card libraries and decks',
|
||||
|
||||
Reference in New Issue
Block a user