Giter VIP home page Giter VIP logo

Comments (25)

mahiuchun avatar mahiuchun commented on August 28, 2024

Same here, Ubuntu 12.04

from mate-menus.

infirit avatar infirit commented on August 28, 2024

Looks like #6 will solve this issue.

from mate-menus.

DrReD avatar DrReD commented on August 28, 2024

the problem happens because mate-menus still ignores the following xdg-specified directory in the user home dir:
~/.config/menus/applications-merged ()

A workaround is to:
cd ~/.config/menus/ ; ln -s applications-merged mate-applications-merged

As for the fix, I suppose it should be similar to the one done recently to make it see the system-wide xdg applications-merged directory.

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

For getting this work we need to adopt this code from cinnamon
linuxmint/cinnamon@e41e648
This would create 'mate-applications-merged' in xdg directory and if mate-session is starting the first time also in ~/.config/menus/ .
The question is where we add this code?
mate-menu or mate-session?
I'm willing to prepare a PR but i don't know which package and file in code is the right place.
Here i need your help Stefano.

from mate-menus.

besser82 avatar besser82 commented on August 28, 2024

Hello toghether!

I'm another Fedora Packager / Developer like @NiceandGently. He asked me on this issue. For me POV the cinnamon-code mentioned would do the trick, although this is a vile hack. Placing a symlink in $HOME/.config is less problematic than introducing some scratch-written code which additionally parses applications-merged. In my opinion this sniplet should be added into mate-menu. That seems to be more semanticly correct, since the issue discussed here affects mate-menu and not the session itself.

Cheers,
besser82

from mate-menus.

rezso avatar rezso commented on August 28, 2024

@NiceandGently: the best way (imho) if we add the Cinnamon's setup_merge_dir_symlink() fuction to matemenu-tree.c file, and call this function in resolve_default_merge_dirs().

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

Is this still a problem?

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

@NiceandGently: the best way (imho) if we add the Cinnamon's setup_merge_dir_symlink() fuction to matemenu-tree.c file, and call this function in resolve_default_merge_dirs().

@rezso
Any chance of a pull request for this?

from mate-menus.

rezso avatar rezso commented on August 28, 2024

@raveit65
#55

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

Anyone around here who use wine and can test if this PR works?
Maybe on gentoo?
@joakim-tjernlund

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

Mail me a patch for MATE 1.18 and I will test it

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

mail ????, simply add .patch to PR link in browsers :-)
https://patch-diff.githubusercontent.com/raw/mate-desktop/mate-menus/pull/55.patch

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

Ahh, how I have looked for that, why do they not have a button for that :(
Can you do something similar on any commit already in the repo?

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

yes, it works on all commits on github
.diff or .patch

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

Good :)

Anyhow, patch installed and after logout/login I see:

cd ~.config/menus/
ls -ld *merged
drwx------ 2 jocke users 41 Jun 20 11:56 applications-merged/
lrwxrwxrwx 1 jocke users 45 Aug 16 17:38 mate-applications-merged -> /home/jocke/.config/menus/applications-merged/

So it works although I would have expect a relative symlink

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

Could we have this in 1.18 too?
Also, it would be nice if you could look out MATE 1.18 branches and release accumulated
commits

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

I did already release atril-1.18.1 yesterday.
And yes, i will push that to 1.18 branch + a new point release for mate-menus.
And wine menu entries are there?

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

I wonder, should MATE run xdg-user-dirs-update automatically too?

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

I don't you Wine, sorry. I just stumbled over a Gentoo bug that pointed to this
bug so I wanted to know if this was fixed.

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

I have this in autostart here

[rave@mother ~]$ cat /home/rave/.config/autostart/user-dirs-update-gtk.desktop 
[Desktop Entry]
Encoding=UTF-8
Exec=xdg-user-dirs-gtk-update
Name=User folders update

Install by

[root@mother rave]# dnf provides /etc/xdg/autostart/user-dirs-update-gtk.desktop
Letzte Prüfung auf abgelaufene Metadaten: vor 0:04:06 am Mi 16 Aug 2017 17:53:07 CEST.
xdg-user-dirs-gtk-0.10-10.fc26.x86_64 : Gnome integration of special directories
Quelle      : @System

from mate-menus.

joakim-tjernlund avatar joakim-tjernlund commented on August 28, 2024

That is xdg-user-dirs-gtk-update, not xdg-user-dirs-update, which I think is different

Gentoo has some funky xinitrc.d file:

cat 10-user-dirs-update-mate
#!/bin/sh

# Create various XDG directories, and write ~/.config/user-dirs.dirs, etc.
# That file is read by glib to get XDG_PICTURES_DIR, etc

if [ "$DESKTOP_SESSION" = "mate" ]; then
	if type xdg-user-dirs-update >/dev/null 2>&1; then
		xdg-user-dirs-update
	fi
fi

I wonder if that should be inside MATE instead.

BTW, would be great if you could release a new mate-themes too, I want to see
if yelp scroll fix will help Evolution too, the horizontal scrollbar if not drawn there either.

from mate-menus.

rezso avatar rezso commented on August 28, 2024

@raveit65
what do you think, this condition is needed?
https://github.com/rezso/mate-menus/commit/16f58f797ddeebb0c5a1f701034b8838a927cea2

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

Let's hear what package maintainer thinks?
@XRevan86
Can you handle this PR please?

from mate-menus.

rezso avatar rezso commented on August 28, 2024

Okay, after installing Zuma's revenge with wine:

rezso@papi:~/.config$ ls -1 -R ~/.config/menus
/home/rezso/.config/menus:
applications-merged
mate-applications-merged

/home/rezso/.config/menus/applications-merged:
'wine-Programs-PopCap Games-Zuma'''s Revenge!-Play Zuma'''s Revenge!.menu'
'wine-Programs-PopCap Games-Zuma'''s Revenge!-Uninstall Zuma'''s Revenge!.menu'
'wine-Programs-PopCap Games-Zuma'''s Revenge!-View Readme.menu'
'wine-Programs-PopCap Games-Zuma'''s Revenge!-Visit PopCap.com.menu'
xdg-desktop-menu-dummy.menu

from mate-menus.

raveit65 avatar raveit65 commented on August 28, 2024

merged 923a0d9

from mate-menus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.