DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default Forum Project: Lightweight, FreeDesktop compliant DE

In F/U to a discussion in the HowTo, section (http://www.daemonforums.org//showthread.php?t=10656), the components for a freedesktop compliant DE are available. It uses x11/openbox, x11/tint2, x11/menu-cache, and the following port, jgmen-1.4.1.tar.gz.

With xenodm, cupsd, apmd, avahi_daemon, 2 tint2 panels, and a local instance of mpd, resting memory useage is 133M. Replacing openbox-menu with jgmenu_run, in ~/.config/openbox/rc.xml, all installed applications with *desktop files show up in the menu. Manual editing of OpenBSD, cwm, twm, fvwm application menus becomes a thing of the past.

It does raise some issues though. In OpenBSD, all base apps (xterm, xcalc) lack *.destop files. Some legacy apps that use terminals (ncmpc, ncmpcpp, calcurse, mutt, neomutt, rxvt-unicode, mlterm) also lack *.desktop entries. ArchLinux, Debian and Fedora all add *desktop files with "Terminal=true". Terminal is specified by x-terminal-emulator and can be anything.

An obvious workaround would be for the user to install applications with *freedesktop entries or to reference tutorials on how to generate the entries.

Arch Wiki Desktop-entries

Personally, I use xterm, mutt, xcalc, ncmpc and calcurse and providing the missing *desktop entries is nearly as much work as manually editing openbox config files. I currently have an openbox/menu.xml file that calls weather information, a panel calendar, wireless management. These would need *desktop entries

One thought is to set this up as a project. I can provide the basic skeleton and those interested in contributing could provide their *.desktop/icon files and scripts.

If this works, the *desktop entries could be submitted to ports@openbsd.org

Would the moderators be OK with the forum hosting this project?

Are there forum members interested in contributing?

Here is the basic setup with Instructions.
BareGUI.tar.gz
Forgot to add you need an /etc/doas.conf entry for the user shutdown entries and be a member of the wheel group.
Code:
permit nopass :wheel as root cmd /sbin/shutdown
Screenshot
Name:  jgmenu.jpg
Views: 111
Size:  25.8 KB

Last edited by shep; 1 Week Ago at 01:53 AM. Reason: Updated tar.gz with cantarell-fonts, liberation-fonts, added Missing gnome-menus
Reply With Quote
  #2   (View Single Post)  
Old 2 Weeks Ago
ripe's Avatar
ripe ripe is offline
Port Guard
 
Join Date: Feb 2013
Location: Toulouse, France
Posts: 39
Default

If no problem with the moderators, I am interested in contributing.
Reply With Quote
  #3   (View Single Post)  
Old 2 Weeks Ago
ip6ix's Avatar
ip6ix ip6ix is offline
Port Guard
 
Join Date: Sep 2017
Location: UK
Posts: 24
Default Gendesk

Looking at the Arch wiki Desktop-entries page you referred to, under the tools section there's something called gendesk, (https://github.com/xyproto/gendesk) an application written in Go which compiles easily and runs well on OpenBSD.

With this tool I was able to easily create some bare-bones .desktop files. So for example to create mutt.desktop it's:

Code:
% gendesk -f --pkgname="mutt" --terminal="true" --comment="$(pkg_info -qc mutt)"
taking the output in this case from pkg_info to fill in the comment field. Gendesk will also download the relevant PNG icon file from the net if it cannot find one on the local system, and place it in the current directory together with the desktop file.

The mutt.desktop file so created was:


Code:
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Mutt
Comment=tty-based e-mail client
Exec=mutt
Icon=mutt
Terminal=true
StartupNotify=false
Categories=Application;
Gendesk has quite a few other command-line arguments, allowing customisation of the .desktop file to the required degree.
__________________
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'|dc
Reply With Quote
  #4   (View Single Post)  
Old 2 Weeks Ago
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 630
Default

Seems like you should make a port of that.
Reply With Quote
  #5   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default

@ip6ix
Great. I'd envisoned downloading the *.desktop file from from Debian, Arch or Fedora repositories, particularly if it had internationalization. Question for Ibara, would it be acceptable, once they pass scrutiny, to submit to ports? My first target is xterm. The vte based terminals have a propensity to core dump. Xterm is rock solid and would not be a bad thing to show up in a Desktop menu.

The other thought was to put scripts, that could be utilized by other lightweight desktops and link to them from this thread. I have 3 scripts for weather information: current conditions, forecast and playback of composite radar.

I'll post the BareGUI config files shortly.
Reply With Quote
  #6   (View Single Post)  
Old 2 Weeks Ago
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 630
Default

I was thinking more along the lines of making gendesk a port.
I could imagine a collection of pre-created .desktop files for base things would be OK IFF they don't interfere with anything, and probably as long as it never becomes a dependency of anything else.
Reply With Quote
  #7   (View Single Post)  
Old 2 Weeks Ago
ip6ix's Avatar
ip6ix ip6ix is offline
Port Guard
 
Join Date: Sep 2017
Location: UK
Posts: 24
Default

Quote:
Originally Posted by ibara View Post
Seems like you should make a port of that.
I'd be happy to, though I'd have to find out how to do it first. Will read the faqs.
__________________
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'|dc
Reply With Quote
  #8   (View Single Post)  
Old 2 Weeks Ago
fvgit's Avatar
fvgit fvgit is offline
Real Name: Tempvs fvgit
Package Pilot
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("SGVyZSBiZSBkcmFnb25zC")'
Posts: 149
Default

Quote:
Originally Posted by ip6ix View Post
I'd be happy to, though I'd have to find out how to do it first. Will read the faqs.
Not to forget: OpenBSD Virtual Porting Workshop
Reply With Quote
  #9   (View Single Post)  
Old 2 Weeks Ago
shep shep is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,171
Default

Basic setup appended to my first post. It includes an xterm.desktop that uses a terminal.svg from the gnome icon theme. From here you should be able to choose whatever browser, email client, office apps you want and use tint2conf on the launcher.tint2rc.

Edit: The pkglist was missing gnome-menus - jgmenu would error that it could not find a menu. Fixed now.

Last edited by shep; 1 Week Ago at 01:55 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD 6.0 - lightweight WM beiroot OpenBSD Packages and Ports 15 23rd January 2017 11:36 AM
Lightweight markup languages J65nko General software and network 3 5th January 2016 06:38 PM
Package lists/Config files for Lightweight Desktop/Funding Option shep Feedback and Suggestions 1 16th December 2013 07:24 PM
"Lightweight" TeX setup for NetBSD 5 IdOp Guides 2 20th May 2012 11:19 PM
Need a lightweight browser to replace Fx3 TerryP General software and network 15 12th February 2009 10:45 PM


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick