Testing unity-session in 18.04

https://guides.github.com/activities/hello-world/

2 Likes

how did you modify the Yaru theme to make it work with Unity?

I used the Oomox tool to create a theme based theme materia and copied the unity line from the gtk.css file to the gtk.css file of the yaru theme of the gtk3 folder and used the metacity-1 and unity folders of the numix theme.Captura de tela de 2018-08-19 11-21-47Captura de tela de 2018-08-19 11-22-53Captura de tela de 2018-08-19 11-23-11

2 Likes

Hey great work!
Could you check if this would fix this issue: https://github.com/ubuntu/yaru/issues/701
(I am pretty sure it is this issue :slight_smile: )

Hm after looking at the screenshots… We added a light headerbar top border which looks pretty bad in that screenshot since unity does not use client side decorations :open_mouth:
Is there any specific reason why unity7 still needs to patch out the CSD?
Does the global menu stop working with CSD? Otherwise I would recommend to not apply this patch

I believe the Yaru theme is based on Adwaita, so just add/copy the Unity folder from the Adwaita theme (from Unity-session, for example) to Yaru theme (or any theme without the Unity folder) and see what happens.

I’m not too hopeful, I already got shot down, although admittedly I don’t think the issue reviewer understood the feature request:

https://github.com/ubuntu/yaru/issues/652

https://github.com/ubuntu/yaru/issues/701

He did. You mentioned Unity7, and that’s not in the pipeline. So, nothing Unity would be added/done to Gnome only thing. Just create your Unity theme and paste the folder to theme of your liking. Advaita to advaita and so on. I’ve pasting few Unity theme folders to few themes without Unity with success.

I don’t think so, judging by the second issue link posted above. I believe he misinterpreted what I meant as “please give us unity 7 ubuntu”.

1 Like

I know this is for 18.04 but as 18.10 isn’t that far away I post it anyway. I recently installed 18.10 and Unity in it. Yesterday there where updates for compiz and since then, the applications icons don’t show anymore in the Dash. I tried other icons like Adwaita, Humanity etc. too but the issue is still there.

Bildschirmfoto vom 2018-09-06 17-15-00

I just installed 18.10 in a virtual machine, and then installed ubuntu-unity-desktop. I don’t see what you describe. I had to restart a couple of times the system, at first I was getting no window decorations and wrong icons, but after accepting some updates and restarting a couple of times I think everything looks Ok in Unity.

Why don’t we open a new thread “Testing unity-session in 18.10”?

3 Likes

Ok, thank you for your reply, I will look into it.

Found a better fix, cause with the other one I had issues with the launcher showing a second icon when the application was launched. You basically have to add ‘env XDG_CURRENT_DESKTOP=Unity’ after the ‘Exec=’ in every .desktop file, then the Libre Office just works like in 16.04 and the Libre Office menu button is gone too. You also have to do this with Java Apps like JDownloader after enabling Jayatana so the global menu gets loaded properly.

The line for Libre Office Writer looks like this then:

Exec=env XDG_CURRENT_DESKTOP=Unity libreoffice --writer %U

Don’t edit the .desktop entries in /usr/share/applications, first copy them to ./local/share/applications and edit those.

@khurshid-alam
Can we somehow ship modified .desktop files for Libre Office if someone is installing ubuntu-unity-desktop?

screen01

1 Like

THIS works. It’s amazing, really. Thank you!

Possible under unity-settings (from PPA). But I don’t want to do it. It should be fixed in LO.

Can you comment here ? https://bugs.documentfoundation.org/show_bug.cgi?id=119328
Launchpad-bug: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1589215/

It seems LO is not detecting Unity (XDG_CURRENT_DESKTOP) properly.

Btw, does it still shows app-menu when you open a file with writer ?

Yes I will comment there, thx for your reply.

Do you mean the Gnome Shell menu with the few options like ‘New’, ‘Help’ etc.? That is gone completely with setting XDG_CURRENT_DESKTOP manually, it only shows the application name.

screen02

A patch has been submitted can someone test it who knows what to do?

https://gerrit.libreoffice.org/#/c/60489/2

New Bug I discovered : I you add an online account , you don’t have the buttons to validate …

Thanks. That will work. Although the builds fails due to some other reasons. Just try compiling libreoffice in PPA with the patch.

Just to point out to people thinking “well I’ll just define XDG_CURRENT_DESKTOP on my ~/.profile and be done with it”, don’t do this as you’ll break stuff, not least of which Unity Settings.