You are not logged in.
For some reason, "mozo" and "alacarte" can't edit my menus on XFCE. Right-clicking on "Applications -> Properties -> Edit Menu" doesn't work either.
Opening alacarte via Terminal results in this:
[amarildo@amarildo ~]$ alacarte
/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py:22: PyGIWarning: GMenu was imported without specifying a version first. Use gi.require_version('GMenu', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GdkPixbuf, Gdk, GMenu
(alacarte:1101): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
(alacarte:1101): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
Traceback (most recent call last):
File "/usr/bin/alacarte", line 24, in <module>
main()
File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 463, in main
app.setMenuBasename(basename)
File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 61, in setMenuBasename
self.editor = MenuEditor(menu_basename)
File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 36, in __init__
self.load()
File "/usr/lib/python2.7/site-packages/Alacarte/MenuEditor.py", line 49, in load
if not self.tree.load_sync():
GLib.Error: g-io-error-quark: Failed to look up menu_file for "applications.menu"
(0)
[amarildo@amarildo ~]$Mozo doesn't open either. However, via Terminal it does open but I can't edit Menus. Whenever I click "Properties" (to edit a Menu) this appears:
[amarildo@amarildo ~]$ mozo
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/Mozo/MainWindow.py", line 384, in on_edit_properties_activate
process = subprocess.Popen(['mate-desktop-item-edit', file_path], env=os.environ)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
/usr/lib/python2.7/site-packages/Mozo/MainWindow.py:80: Warning: Source ID 34 was not found when attempting to remove it
gobject.source_remove(self.timer)
/usr/lib/python2.7/site-packages/Mozo/MainWindow.py:80: Warning: Source ID 187 was not found when attempting to remove it
gobject.source_remove(self.timer)
[amarildo@amarildo ~]$ Here's what I'm trying to do. I'm setting most my programs to open with "firejail". I could do this by opening /usr/share/applications as root and editing the command on each program, but the Libreoffice stuff is a link and I can't make it open with Firejail.
I'll attatched an image that shows what I've done. I open Libreoffice, then do "firejail --tree", and Libreoffice isn't there.
Image: https://i.imgur.com/P9VKJF6.png
UPDATE: Opening the .desktop files at /usr/share/applications and pasting the firejail command on every "exec" line doesn't work either.
UPDATE2: I think I got it. I'll have to move the entries from /usr/share/applications (obviously making a backup), and then just copy them to /home/amarildo/.local/share/applications/blah-blah-blah.
For some odd reason, firejail works with these files, but not with the ones from /usr/share/applications, even though they are exactly the same.
UPDATE3: Done.
Changed image tags for over sized image to url tags. https://wiki.archlinux.org/index.php/Fo … s_and_code
Last edited by ewaller (2016-01-11 02:51:31)
If it ain't broke, you haven't tweaked it enough...
Offline
$ echo $XDG_MENU_PREFIX
xfce-
$ alacarte...works.
$ unset XDG_MENU_PREFIX
$ echo $XDG_MENU_PREFIX
$ alacarte
...
GLib.Error: g-io-error-quark: Failed to look up menu_file for "applications.menu...doesn't.
Offline
$ echo $XDG_MENU_PREFIX xfce- $ alacarte...works.
$ unset XDG_MENU_PREFIX $ echo $XDG_MENU_PREFIX $ alacarte ... GLib.Error: g-io-error-quark: Failed to look up menu_file for "applications.menu...doesn't.
Thanks, I'll keep this saved, just in case.
Also, opening "Launcher" and right-clicking on programs to edit them, works too. A menu will pop-up that says "Edit", then I just edit them with this method.
If it ain't broke, you haven't tweaked it enough...
Offline
Install menulibre. Then rightclick on the whiskermenu, I assume that it is installed, and Edit Applications.
Offline