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

App doesn't startup, and no log is shown #277

Open
soumyaDghosh opened this issue May 24, 2023 · 14 comments
Open

App doesn't startup, and no log is shown #277

soumyaDghosh opened this issue May 24, 2023 · 14 comments

Comments

@soumyaDghosh
Copy link

Hello, I have snapped this app, but it doesn't showup, and doesn't show any error log. This is the snapcraft.yaml

name: hypnotix
version: '3.2'
base: core22
icon: snap/hypnotix.svg
summary: IPTV player for M3U playlists
description: |
  Hypnotix is an IPTV streaming application with support for live TV, movies and series.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
layout:
  /usr/lib/hypnotix:
    bind: $SNAP/usr/lib/hypnotix
parts:
  hypnotix:
    source: https://github.com/linuxmint/hypnotix.git
    plugin: dump
    stage-packages:
      - gir1.2-xapp-1.0
      - libxapp1
      - python3-imdbpy
      - libmpv1
      - python3-requests
      - xapps-common
    prime:
      - usr/*
apps:
  hypnotix:
    command: usr/bin/hypnotix
    extensions: [ gnome ]
    desktop: usr/share/applications/hypnotix.desktop
    environment:
      DISABLE_WAYLAND: 1
    plugs:
      - home
      - mount-observe
      - network
      - network-bind
      
@Axel-Erfurt
Copy link

Did you start it in terminal?

@soumyaDghosh
Copy link
Author

Yes, there I got no log.

@Axel-Erfurt
Copy link

Axel-Erfurt commented May 26, 2023

What is your OS?

@soumyaDghosh
Copy link
Author

Ubuntu 22.04

@Axel-Erfurt
Copy link

If the snap don't work, try a ppa
https://www.omgubuntu.co.uk/2022/07/install-linux-mint-apps-on-ubuntu-ppa

@soumyaDghosh
Copy link
Author

I am trying to create the snap package actually.

@soumyaDghosh
Copy link
Author

Is there no way to debug it? any thing or any command to run and test.

@Axel-Erfurt
Copy link

hypnotix.py expects files in multiple folders

/usr/lib/hypnotix
/usr/share/hypnotix
/usr/share/glib-2.0/schemas

You would have to change hypnotix.py to do it differently.

@dpohlman
Copy link

dpohlman commented Jun 9, 2023

I am seeing this on Manjaro (KDE)

Traceback (most recent call last):  ✔
File "/usr/lib/hypnotix/hypnotix.py", line 109, in activate
window = MainWindow(self)
^^^^^^^^^^^^^^^^
File "/usr/lib/hypnotix/hypnotix.py", line 309, in init
self.dark_mode_manager = XApp.DarkModeManager.new(prefer_dark_mode=True)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gi/overrides/init.py", line 32, in getattr
return getattr(self._introspection_module, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/gi/module.py", line 126, in getattr
raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.XApp' object has no attribute 'DarkModeManager'

@mtwebster
Copy link
Member

mtwebster commented Jun 9, 2023

You need to update libxapp to 2.6

edit: We were slow in noting the required version: fd22e65

@rektosaure
Copy link

Can't find libxapp on Manjaro

@mtwebster
Copy link
Member

Try simply 'xapp'

@dpohlman
Copy link

dpohlman commented Jun 9, 2023

It appears xapp 2.4 is the only available build currently for Manjaro, including AUR. So maybe we just have to wait.

@rektosaure
Copy link

Seems so, thanks for your reply anyway

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

5 participants