这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@sabamdarif
Copy link
Contributor

this pr add the Cinnamon desktop environment on termux.
i add few things based on #24585 .

i add the upower even though it's in that pr because it need that to successfully build all the packages

@sabamdarif
Copy link
Contributor Author

Screenshot_20250826-145653_Termux_X11

there is only one thing i can understand how can i fix , as you see in this image the desktop background is completely black which i can't fix

you can see a error message too

@robertkirkman
Copy link
Member

robertkirkman commented Aug 26, 2025

Very good!!!

  • If you have Turnip on certain devices, using export LIBGL_ALWAYS_SOFTWARE=1 before using cinnamon-launcher seems necessary to prevent windows from being invisible

    • To use the the GPU for OpenGL again afterward, use unset LIBGL_ALWAYS_SOFTWARE in a terminal and then use programs launched from that terminal inside Cinnamon
    • This also affects some other DEs like XFCE if compositing is enabled on at least some devices
    • (However this does not affect some DEs like IceWM. I have come to assume this problem results from the intersection of X11 compositors, Turnip, Zink, and certain specific devices like Adreno 612 GPU, simultaneously)
    • This problem is basically tracked here [Bug]: Possible regression dbus 1.16.2 #23981 however that issue covers at least two different problems simultaneously and one of the problems don't have anything to do with "dbus" at all, so it became a catch-all issue for two problems related to black screen and each problem only affects some people's devices, and the "dbus" problem was fixed a long time ago so the "dbus" title is just something that doesn't make any sense anymore that you can ignore.
  • For me, trying to open the settings app has an error about "Gsound".

Screenshot_20250826-053920_Termux_X11

Maybe it's necessary to either patch out the requirement for that, or try to add Gsound as a package.
https://wiki.gnome.org/Projects/GSound

@sabamdarif
Copy link
Contributor Author

thanks i will try

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from f7d1abc to 694785d Compare August 26, 2025 12:57
@sabamdarif
Copy link
Contributor Author

sabamdarif commented Aug 26, 2025

so now i am getting this kind of error

~ $ cinnamon-settings
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 29, in <module>
    from bin import SettingsWidgets
  File "/data/data/com.termux/files/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py", line 10, in <module>
    from xapp.SettingsWidgets import SettingsWidget, SettingsLabel
ImportError: cannot import name 'SettingsWidget' from 'xapp.SettingsWidgets' (/data/data/com.termux/files/usr/lib/python3.12/site-packages/xapp/SettingsWidgets.py)

what i understand that it can't access python3-xapp (pip)
@robertkirkman do you have any idea how can i fix this ?

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from 694785d to 038db40 Compare August 26, 2025 17:50
@robertkirkman
Copy link
Member

@sabamdarif yes!

I've managed to identify some additional software that can make the xapp Import error change to a different error instead (proceed further), at least for me (I didn't see exactly the same error as you, but maybe this will also make your "xapp" error stop)

git clone https://github.com/linuxmint/python3-xapp
cd python3-xapp/
meson build . --prefix=$PREFIX
meson compile -C build
meson install -C build
cinnamon-settings

(Inspired by Arch Linux package https://gitlab.archlinux.org/archlinux/packaging/packages/python-xapp/-/blob/main/PKGBUILD?ref_type=heads)

This is the new error I see instead:

Screenshot_20250826-160947_Termux_X11

(I am not highly experienced with PAM, but I believe it is something that is commonly found on Desktop Linux, but might be very difficult to use in Termux on Android, since Termux packages are frequently built with --disable-pam - so this part might be something that is necessary to patch out)

@sabamdarif
Copy link
Contributor Author

thanks i will try

@sabamdarif
Copy link
Contributor Author

what if we just disable that cs_user.py do we need that

mv /data/data/com.termux/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py /data/data/com.termux/files/usr/share/cinnamon/cinnamon-settings/modules/cs_user.py.bak

it make cinnamon-settings launch

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch 4 times, most recently from 5928789 to d9c3f8b Compare August 27, 2025 05:46
@sabamdarif
Copy link
Contributor Author

Screenshot_20250827-131518_Termux_X11

now it's lot better

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from b0ca354 to b54ef36 Compare August 27, 2025 11:28
@sabamdarif
Copy link
Contributor Author

regarding the black desktop background, could it have anything to do with cinnamon-screensaver?

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from b54ef36 to 23aee7e Compare August 27, 2025 14:47
@sabamdarif
Copy link
Contributor Author

finally fix this #25823 (comment) error notification i was getting

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from 23aee7e to c1c4d1f Compare August 27, 2025 17:01
@sabamdarif
Copy link
Contributor Author

Screenshot_20250827-224002_Termux_X11

almost everything is working now, even the desklet are working too but not the desktop, the problem is there is no error message related to that, that's why i don't understand where to look

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from c1c4d1f to 5a05cbc Compare August 28, 2025 05:58
@DuilioPerez
Copy link

I was able go get icons working

Screenshot_20250828-050928_TermuxX11

I get the next errors when setting a background desktop image:

~ $ DESKTOP_SESSION=cinnamon nemo-desktop 

(nemo-desktop:2927): Nemo-WARNING **: 05:04:30.726: Current gtk theme is not known to have nemo support (Adwaita-dark) - checking...

(nemo-desktop:2927): Nemo-WARNING **: 05:04:30.909: The theme appears to have no nemo support.  Adding some...
Nemo-Message: 05:04:30.993: nemo-desktop: session is cinnamon, establishing proxy

(nemo-desktop:2927): Nemo-WARNING **: 05:04:31.818: Action 'mount-archive.nemo_action' is missing dependency: gnome-disk-image-mounter
CinnamonDesktop-Message: 05:04:32.011: Ignoring thumbnailer with missing binary: 'heif-thumbnailer'
CinnamonDesktop-Message: 05:04:32.012: Ignoring thumbnailer with missing binary: '/usr/bin/gdk-pixbuf-thumbnailer'
CinnamonDesktop-Message: 05:04:32.012: Ignoring thumbnailer with missing binary: '/data/data/com.termux/files/usr/bin/gdk-pixbuf-thumbnailer'
Could not find network module; is the cinnamon-control-center package installed?
warning: failed to process CCC module network
Could not find color module; is the cinnamon-control-center package installed?
warning: failed to process CCC module color
Could not find wacom module; is the cinnamon-control-center package installed?
warning: failed to process CCC module wacom
/data/data/com.termux/files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py:458: DeprecationWarning: Gtk.Window.set_wmclass is deprecated
  self.window.set_wmclass(wm_class, wm_class)
Loading Backgrounds module

It seems an issue related to cinnamon-control-center

@DuilioPerez
Copy link

Some commands don't work due to missing dependencies. Most of the are python interfaces. I found the next list of dependencies that needs to be manually installed:

python-dbus
pyinotify
pyinotify-elephant-fork
gvfs

@sabamdarif
Copy link
Contributor Author

@DuilioPerez how did you get icons working ?

@sabamdarif
Copy link
Contributor Author

yes the desktop icons are working now thanks @DuilioPerez

@DuilioPerez
Copy link

@DuilioPerez how did you get icons working ?

It seems cinnamon doesn't launch automatically nemo-desktop in the build I tested (12 hours ago). I launched from Terminal and it works. It gives those errors too. Another missing dependency is libheif-progs which is in Termux repositories. It yet doesn't recognize cinnamon-control-center. I think it could be a path issue, bacause I don't get any python error. Maybe in some part is not being used $PREFIX

@sabamdarif
Copy link
Contributor Author

yes i will fix that autostart error

@sabamdarif
Copy link
Contributor Author

It yet doesn't recognize cinnamon-control-center.

those messages are about network, color, wacom are missing from the control center, it happen because i disabled them, they will not work in termux

@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from 00afee6 to 3d76bdf Compare August 28, 2025 16:41
@sabamdarif sabamdarif force-pushed the cinnamon-desktop-environment branch from 2457d64 to 7d727cd Compare September 2, 2025 09:18
Copy link
Member

@robertkirkman robertkirkman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good now I think it's ready and I will merge it

@robertkirkman robertkirkman merged commit a639746 into termux:master Sep 2, 2025
11 checks passed
@robertkirkman
Copy link
Member

Whoops I forgot that I said that you need to rename python3-xapp to python-xapp and you didn't do it,

#25823 (comment)

that is ok I will do that now

@sabamdarif
Copy link
Contributor Author

Whoops I forgot that I said that you need to rename python3-xapp to python-xapp and you didn't do it,

#25823 (comment)

that is ok I will do that now

oh i also forget that 😅

robertkirkman added a commit that referenced this pull request Sep 2, 2025
- Like Arch Linux https://archlinux.org/packages/extra/any/python-xapp/ and all other Termux Python packages

- Planned here, but was accidentally not done yet #25823 (comment)
termux-pacman-bot added a commit to termux-pacman/termux-packages that referenced this pull request Sep 2, 2025
- Like Arch Linux https://archlinux.org/packages/extra/any/python-xapp/ and all other Termux Python packages

- Planned here, but was accidentally not done yet termux/termux-packages#25823 (comment)
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

Successfully merging this pull request may close these issues.

4 participants