Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desktop-app install fails on Linux #21

Closed
demberto opened this issue Apr 8, 2022 · 2 comments
Closed

desktop-app install fails on Linux #21

demberto opened this issue Apr 8, 2022 · 2 comments

Comments

@demberto
Copy link

demberto commented Apr 8, 2022

>>> desktop-app install dycall
Traceback (most recent call last):
  File "/home/demberto/.local/bin/desktop-app", line 8, in <module>
    sys.exit(main())
  File "/home/demberto/.local/lib/python3.8/site-packages/desktop_app/__main__.py", line 50, in main
    install(module, path=args.path, verbose=not args.quiet,
  File "/home/demberto/.local/lib/python3.8/site-packages/desktop_app/shell.py", line 264, in install
    create_desktop_file(
  File "/home/demberto/.local/lib/python3.8/site-packages/desktop_app/linux.py", line 41, in create_desktop_file
    path.write_text(dedent(contents), encoding='utf8')
  File "/usr/lib/python3.8/pathlib.py", line 1255, in write_text
    with self.open(mode='w', encoding=encoding, errors=errors) as f:
  File "/usr/lib/python3.8/pathlib.py", line 1222, in open
    return io.open(self, mode, buffering, encoding, errors, newline,
  File "/usr/lib/python3.8/pathlib.py", line 1078, in _opener
    return self._accessor.open(self, flags, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/home/demberto/.local/share/applications/dycall.desktop'
@chrisjbillington
Copy link
Owner

Thanks for the bug report. Looks like /home/demberto/.local/share/applications/ doesn't exist. Is that correct?

If so, the fix should be easy enough, will just need to make the calling code create the directory.

@demberto
Copy link
Author

demberto commented Apr 11, 2022

Damn, I will check this tommorow for sure. Yea the fix would be simple, like using os.mkdirs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants