raspberrypi / maynard

Desktop environment for Wayland
Other
337 stars 46 forks source link

computer background/menu/desktops #50

Closed je-vv closed 7 years ago

je-vv commented 7 years ago

Hi,

Coming from fluxbox, I just tried maynard... However upon launching it, I get a launcher that doesn't include anything other than libreoffice and a clock.

I'm used not to have a DE (just plain fluxbox), not to have pulse (just plain alsa), and so on... But I'm not findind a way on maynard to have an applications menu, a way to select a background image, a way to set multiple desktops and so on...

It seems several things should/can be configured on weston.ini, but any settings there are ignored by maynard, such the background...

Is there a maynard configuration file other than weston.ini one needs to tweak? How to be able to launch a menu to select applications (doesn't matter if not in the launcher, actually the cleaner, the better)?

Narrat commented 7 years ago

Yes, those things to configure is... not optimal. See #7 .

Currently to configure a custom menu, it's necessary to tamper with

/usr/share/glib-2.0/schemas/org.raspberrypi.maynard.gschema.xml

and recompiling it with

# glib-compile-schemas /usr/share/glib-2.0/schemas
ZanderBrown commented 7 years ago

Of course dconf-editor could be used as could the gsettings command

je-vv commented 7 years ago

BTW, with dconf I can see: /org/raspberrypi/maynard But inside, only "favorites", there's no panel config., neither other ones. As I'm not using gnome, or any other DE with Xorg, I'm not able to find a "panel" config anywhere, to look for menu configuration. I don't want to populate the panel with lots of favorites, and I don't want icons in the desktop... So I'm lookingh to enable a menu unsuccessfully.

ZanderBrown commented 7 years ago

favourites is a list of launchers to include on the panel

je-vv commented 7 years ago

Correct, tested that. But that's what I don't want to populate with applications. I'm rather looking to populate the menu (I guess the button @ the bottom of the panel with several squares), which I haven't found a way to do so with dconf-editor...

ZanderBrown commented 7 years ago

That should automatically populate from .desktop files just as LXDE, GNOME ext fill their menus

je-vv commented 7 years ago

Well, I've never used gnome, lxde,xfce, neither any other DE... But I do have several *.desktop files under "/usr/share/applications":

% ls /usr/share/applications/*.desktop | wc -l 118

See following image to notice the empty menu...

maynard_empty_menu

BTW, there's no logout option... I guess I could make my own *.desktop files up for logout, powerdown, etc, once I get the menu showing up non empty... Couldn't change the time to 12 hours either (less of a concern of course)...

ZanderBrown commented 7 years ago

Interesting. any output from Maynard at the command line (once you have exited)

je-vv commented 7 years ago

Interesting, at the bottom goes "maynard |& tee maynard.log"... But the key part regarding the menu:

\ (maynard:5775): WARNING **: Failed to load apps: Failed to look up menu_file for "applications.menu"

The warning pretty much says there should be a menu_file missing for the menu with applications?

BTW, I have under /etc/gtk-3.0/settings.ini:

[Settings] gtk-application-prefer-dark-theme = true gtk-icon-theme-name = Tango gtk-fallback-icon-theme = gnome gtk-theme-name = Arc-Dark

Now the full output...

+++++ Date: 2016-10-31 CST [22:18:43.768] weston 1.12.0 http://wayland.freedesktop.org Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.12.0 Build: 1.11.94-2-ga08dff5 configure.ac: bump to version 1.12.0 for the official release (2016-09-20 12:22:46 -0700) [22:18:43.768] Command line: /usr/bin/weston [22:18:43.768] OS: Linux, 4.8.4-1-ARCH, #1 SMP PREEMPT Sat Oct 22 18:26:57 CEST 2016, x86_64 [22:18:43.768] Using config file '/home/vasqueja/.config/weston.ini' [22:18:43.768] Output repaint window is 7 ms maximum. [22:18:43.769] Loading module '/usr/lib/libweston-1/drm-backend.so' [22:18:43.771] initializing drm backend [22:18:43.775] logind: session control granted [22:18:43.777] using /dev/dri/card0 [22:18:43.777] Loading module '/usr/lib/libweston-1/gl-renderer.so' [22:18:43.848] EGL client extensions: EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_wayland EGL_EXT_platform_x11 EGL_MESA_platform_gbm EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug [22:18:43.848] warning: EGL_EXT_swap_buffers_with_damage not supported. Performance could be affected. [22:18:43.848] EGL_KHR_surfaceless_context available [22:18:43.849] EGL version: 1.4 (DRI2) [22:18:43.849] EGL vendor: Mesa Project [22:18:43.849] EGL client APIs: OpenGL OpenGL_ES [22:18:43.849] EGL extensions: EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_KHR_create_context EGL_KHR_get_all_proc_addresses EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_WL_bind_wayland_display [22:18:43.849] GL version: OpenGL ES 3.0 Mesa 13.0.0-rc2 [22:18:43.849] GLSL version: OpenGL ES GLSL ES 3.00 [22:18:43.849] GL vendor: nouveau [22:18:43.849] GL renderer: Gallium 0.4 on NVA5 [22:18:43.849] GL extensions: GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_dxt1 GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_EXT_draw_buffers GL_EXT_map_buffer_range GL_KHR_debug GL_OES_depth_texture_cube_map GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_separate_shader_objects GL_EXT_shader_integer_mix GL_EXT_base_instance GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_polygon_offset_clamp GL_EXT_texture_border_clamp GL_KHR_context_flush_control GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_texture_border_clamp GL_OES_texture_stencil8 GL_EXT_blend_func_extended GL_EXT_clip_cull_distance GL_EXT_window_rectangles GL_MESA_shader_integer_functions [22:18:43.850] GL ES 2 renderer features: read-back format: BGRA wl_shm sub-image to texture: yes EGL Wayland extension: yes [22:18:43.855] input device 'Power Button', /dev/input/event3 is tagged by udev as: Keyboard [22:18:43.855] input device 'Power Button', /dev/input/event3 is a keyboard [22:18:43.856] input device 'Video Bus', /dev/input/event0 is tagged by udev as: Keyboard [22:18:43.856] input device 'Video Bus', /dev/input/event0 is a keyboard [22:18:43.857] input device 'Lid Switch', /dev/input/event2 not tagged as input device [22:18:43.857] not using input device '/dev/input/event2'. [22:18:43.858] input device 'Sleep Button', /dev/input/event1 is tagged by udev as: Keyboard [22:18:43.858] input device 'Sleep Button', /dev/input/event1 is a keyboard [22:18:43.859] input device 'HDA NVidia HDMI/DP,pcm=3', /dev/input/event18 not tagged as input device [22:18:43.859] not using input device '/dev/input/event18'. [22:18:43.860] input device 'HDA NVidia HDMI/DP,pcm=7', /dev/input/event19 not tagged as input device [22:18:43.860] not using input device '/dev/input/event19'. [22:18:43.861] input device 'HDA NVidia HDMI/DP,pcm=8', /dev/input/event20 not tagged as input device [22:18:43.861] not using input device '/dev/input/event20'. [22:18:43.862] input device 'HDA NVidia HDMI/DP,pcm=9', /dev/input/event21 not tagged as input device [22:18:43.862] not using input device '/dev/input/event21'. [22:18:43.863] input device ' USB Keyboard', /dev/input/event5 is tagged by udev as: Keyboard [22:18:43.864] input device ' USB Keyboard', /dev/input/event5 is a keyboard [22:18:43.865] input device ' USB Keyboard', /dev/input/event6 is tagged by udev as: Keyboard [22:18:43.865] input device ' USB Keyboard', /dev/input/event6 is a keyboard [22:18:43.866] input device 'PixArt USB Optical Mouse', /dev/input/event7 is tagged by udev as: Mouse [22:18:43.866] Device 'PixArt USB Optical Mouse' set to 1000 DPI [22:18:43.866] input device 'PixArt USB Optical Mouse', /dev/input/event7 is a pointer caps [22:18:43.867] input device 'Jabra Jabra UC VOICE 550a MS', /dev/input/event8 is tagged by udev as: Keyboard [22:18:43.867] input device 'Jabra Jabra UC VOICE 550a MS', /dev/input/event8 is a keyboard [22:18:43.869] input device 'Plantronics Plantronics C320-M', /dev/input/event17 is tagged by udev as: Keyboard [22:18:43.869] input device 'Plantronics Plantronics C320-M', /dev/input/event17 is a keyboard [22:18:43.870] input device 'HDA Digital PCBeep', /dev/input/event12 not tagged as input device [22:18:43.870] not using input device '/dev/input/event12'. [22:18:43.871] input device 'HDA Intel MID Mic', /dev/input/event13 not tagged as input device [22:18:43.871] not using input device '/dev/input/event13'. [22:18:43.872] input device 'HDA Intel MID Line', /dev/input/event14 not tagged as input device [22:18:43.872] not using input device '/dev/input/event14'. [22:18:43.873] input device 'HDA Intel MID Headphone', /dev/input/event15 not tagged as input device [22:18:43.873] not using input device '/dev/input/event15'. [22:18:43.874] input device 'HDA Intel MID Dock Headphone', /dev/input/event16 not tagged as input device [22:18:43.874] not using input device '/dev/input/event16'. [22:18:43.875] input device 'AT Translated Set 2 keyboard', /dev/input/event4 is tagged by udev as: Keyboard [22:18:43.875] input device 'AT Translated Set 2 keyboard', /dev/input/event4 is a keyboard [22:18:43.876] input device 'PS/2 Generic Mouse', /dev/input/event22 is tagged by udev as: Mouse [22:18:43.876] input device 'PS/2 Generic Mouse', /dev/input/event22 is a pointer caps [22:18:43.877] input device 'SynPS/2 Synaptics TouchPad', /dev/input/event23 is tagged by udev as: Touchpad [22:18:43.877] input device 'SynPS/2 Synaptics TouchPad', /dev/input/event23 is a touchpad [22:18:43.881] input device 'ST LIS3LV02DL Accelerometer', /dev/input/event9 is tagged by udev as: Accelerometer [22:18:43.881] input device 'ST LIS3LV02DL Accelerometer', /dev/input/event9 is an accelerometer, ignoring [22:18:43.881] not using input device '/dev/input/event9'. [22:18:43.882] input device 'PC Speaker', /dev/input/event10 not tagged as input device [22:18:43.882] not using input device '/dev/input/event10'. [22:18:43.883] input device 'HP WMI hotkeys', /dev/input/event11 is tagged by udev as: Keyboard [22:18:43.883] input device 'HP WMI hotkeys', /dev/input/event11 is a keyboard [22:18:43.928] Chosen EGL config details: RGBA bits: 8 8 8 0 swap interval range: 0 - 0 [22:18:43.928] Failed to initialize backlight [22:18:43.928] EDID data 'LGD', '', '' [22:18:43.928] Output LVDS-1, (connector 37, crtc 34) mode 1920x1080@59.9, preferred, current mode 1680x1050@60.0 mode 1400x1050@60.0 mode 1280x1024@59.9 mode 1280x960@59.9 mode 1152x864@60.0 mode 1024x768@59.9 mode 800x600@59.9 mode 640x480@59.4 mode 720x400@59.6 mode 640x400@60.0 mode 640x350@59.8 mode 1920x1080@59.9 [22:18:44.044] Compositor capabilities: arbitrary surface rotation: yes screen capture uses y-flip: yes presentation clock: CLOCK_MONOTONIC, id 1 presentation clock resolution: 0.000000001 s [22:18:44.044] Loading module '/usr/lib/weston/desktop-shell.so' [22:18:44.044] launching '/usr/lib/weston/weston-keyboard' [22:18:44.045] Loading module '/usr/lib/weston/shell-helper.so' [22:18:44.062] Loading module '/usr/lib/libweston-1/xwayland.so' [22:18:44.063] Registered plugin API 'weston_xwayland_v1' of size 32 [22:18:44.063] Registered plugin API 'weston_xwayland_surface_v1' of size 16 [22:18:44.063] xserver listening on display :0 [22:18:44.063] launching '/usr/lib/maynard/maynard' [22:18:44.140] Spawned Xwayland server, pid 5779 glamor: EGL version 1.4 (DRI2): [22:18:44.418] xfixes version: 5.0 [22:18:44.435] created wm, root 624

(maynard:5775): Gtk-WARNING **: Theme parsing error: style.css:48:23: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

\ (maynard:5775): WARNING **: Failed to load CSS file: style.css:48:10not a number

\ (maynard:5775): WARNING **: Failed to load apps: Failed to look up menu_file for "applications.menu"

[22:18:49.526] background surface gone [22:18:49.526] panel surface gone

(maynard:5775): Gdk-ERROR **: Error reading events from display: Broken pipe (EE) Fatal server error: (EE) failed to dispatch Wayland events: Broken pipe (EE) +++++

je-vv commented 7 years ago

One more thing, although this was on a nvidia gpu, the same lack of menu happens on intel gpu...

ZanderBrown commented 7 years ago

Try using https://wiki.archlinux.org/index.php/xdg-menu

je-vv commented 7 years ago

Was already using that for fluxbox (though I found the fluxbox generated menu less comprenhensive than the one generated by fluxbox itself with fluxbox-generate_menu plus my own additions in usermenu, so not really making use of the fluxbox xdg generated menu).

Besides the fluxbox generated menu, there's also a gnome one:

/etc/xdg/menus/gnome-applications.menu

And it was there even before I ever tried maynard. So I'm sort of lost with your "xdg-menu" suggestion, which is meant pretty much to help generate menus for non xdg compliant WMs...

ZanderBrown commented 7 years ago

it seems maynard is hard coded for applications.menu. try copying one of the other menus into applications.menu

je-vv commented 7 years ago

Oh, got it, also reading a similar warning: https://bbs.archlinux.org/viewtopic.php?id=112260 So: sudo ln -s gnome-applications.menu applications.menu Was the key. So far, so good, :+1:

Now, there's still how to change the background (wallpaper), since the one in weston.ini gets ignored, and setting the gnome desktop one with dconf-editor doesn't help... Plus logout and reset/power-off/etc buttons also missing, :-)

ZanderBrown commented 7 years ago

Wallpaper is loaded from the MAYNARD_BACKGROUND environmental variable. Just set it to the full path of an appropriate image

je-vv commented 7 years ago

Right, confirmed that already. Custom menus and some other buttons is what's lacking then... I guess there's no intention either to get a menu with lists of applications (with small icons at the side perhabs), easy to include new applications manually, and the intend is to keep using gnome like menus. BTW, those take a lot of space, the same way the panel includes big icons... Well, I guess it's a matter of taste...

je-vv commented 7 years ago

BTW, closing the issue. Some of the things I'm still concerns perhaps are better tracked with some other issues...

Thanks,

ZanderBrown commented 7 years ago

There is a lot I would like to do I these areas but as I'm unable to build properly on Raspbian (I know I could use Arch but Maynard was originally intended for Raspbian) I can't really contribute without polluting the repo with endless debug statements