{ "info": { "author": "PyRectangle", "author_email": "PyRectangle@web.de", "bugtrack_url": null, "classifiers": [], "description": "# Desktop File\n## About\ndesktop-file is a tool to create desktop shortcuts for windows and linux.\n## Installation\nTo install desktop-file you need [python](https://www.python.org/downloads/release) 3 or later with [pip](https://pip.pypa.io/en/stable/installing) installed.
\nThen you can install it by typing `pip install desktop_file` or by cloning or downloading this repository on github and executing `python setup.py install`\n## Usage\n### Python\nYou can use it in your python script like this:
\n```\n>>> import desktop_file\n>>> # get desktop and start menu folders\n>>> desktop_file.getDesktopPath()\n/home/PyRectangle/Desktop\n>>> desktop_file.getMenuPath()\n/home/PyRectangle/.local/share/applications\n>>> # create a xterm shortcut\n>>> shortcut = desktop_file.Shortcut(\"/home/PyRectangle/Desktop\", \"XTerm\", \"/usr/bin/xterm\")\n>>> shortcut.setWorkingDirectory(\"/home/PyRectangle\")\n>>> shortcut.setComment(\"A desktop file to start xterm\")\n>>> # Only files that contain icons work on Windows\n>>> shortcut.setIcon(\"/usr/share/pixmaps/mini.xterm_48x48.xpm\")\n>>> # Categories don't have any effects on Windows\n>>> shortcut.setCategories(\"System;\")\n>>> shortcut.save()\n```\nYou will find a working shortcut named \"XTerm\" in the folder \"/home/PyRectangle/Desktop\"\n\n### Command\nYou can use `python -m desktop_file` or `desktop-file` to create shortcuts like this:
\n```\ndesktop-file --exec /usr/bin/xterm --workpath /home/PyRectangle --comment \"A desktop file to start xterm\" --icon /usr/share/pixmaps/mini.xterm_48x48.xpm --categories \"System;\" /home/PyRectangle/Desktop/XTerm.desktop\n```\nYou will need to type \".lnk\" instead of \".desktop\" if you are on Windows.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PyRectangle/DesktopFile", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "desktop-file", "package_url": "https://pypi.org/project/desktop-file/", "platform": "", "project_url": "https://pypi.org/project/desktop-file/", "project_urls": { "Homepage": "https://github.com/PyRectangle/DesktopFile" }, "release_url": "https://pypi.org/project/desktop-file/1.1/", "requires_dist": null, "requires_python": "", "summary": "desktop-file is a tool to create desktop shortcuts for windows and linux.", "version": "1.1" }, "last_serial": 4406548, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "eb7ab9babd13c06311872346168ccad2", "sha256": "4d981664dc8640e15c9bf5900dd640a2d8f75cc945bd1672ccdc9861ae36695f" }, "downloads": -1, "filename": "desktop_file-1.0.tar.gz", "has_sig": false, "md5_digest": "eb7ab9babd13c06311872346168ccad2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4257, "upload_time": "2018-10-10T15:06:43", "url": "https://files.pythonhosted.org/packages/48/ee/efdb53e4a5083a200a9890b1826d4b509870bb25c1b623551df9025dc097/desktop_file-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "9c21a9d1f4c529dafd851065c2815f14", "sha256": "bc2b1117dc59ccd706f97adf5ea784d53434c6b89fda30a0c230e28d1f3a4a42" }, "downloads": -1, "filename": "desktop_file-1.1.tar.gz", "has_sig": false, "md5_digest": "9c21a9d1f4c529dafd851065c2815f14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5413, "upload_time": "2018-10-23T13:48:51", "url": "https://files.pythonhosted.org/packages/c0/af/815ca76fa2a2dac9dafd94289dca7e2c92d46f5b02f55b31390af54b4a15/desktop_file-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c21a9d1f4c529dafd851065c2815f14", "sha256": "bc2b1117dc59ccd706f97adf5ea784d53434c6b89fda30a0c230e28d1f3a4a42" }, "downloads": -1, "filename": "desktop_file-1.1.tar.gz", "has_sig": false, "md5_digest": "9c21a9d1f4c529dafd851065c2815f14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5413, "upload_time": "2018-10-23T13:48:51", "url": "https://files.pythonhosted.org/packages/c0/af/815ca76fa2a2dac9dafd94289dca7e2c92d46f5b02f55b31390af54b4a15/desktop_file-1.1.tar.gz" } ] }