linuxmint / hypnotix

An M3U IPTV Player
1.25k stars 169 forks source link

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

Open soumyaDghosh opened 1 year ago

soumyaDghosh commented 1 year ago

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 commented 1 year ago

Did you start it in terminal?

soumyaDghosh commented 1 year ago

Yes, there I got no log.

Axel-Erfurt commented 1 year ago

What is your OS?

soumyaDghosh commented 1 year ago

Ubuntu 22.04

Axel-Erfurt commented 1 year ago

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

soumyaDghosh commented 1 year ago

I am trying to create the snap package actually.

soumyaDghosh commented 1 year ago

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

Axel-Erfurt commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

You need to update libxapp to 2.6

edit: We were slow in noting the required version: https://github.com/linuxmint/hypnotix/commit/fd22e655f819d907754b857ebe3b964f709d3ac1

rektosaure commented 1 year ago

Can't find libxapp on Manjaro

mtwebster commented 1 year ago

Try simply 'xapp'

dpohlman commented 1 year ago

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

rektosaure commented 1 year ago

Seems so, thanks for your reply anyway