Re: [DNG] popupmenu: a new dynamic menu in Gtk2 for WMs

2018-01-30 Thread aitor_czr

Hi Steve,

On 29/01/18 08:05, Steve Litt wrote:

On Fri, 26 Jan 2018 14:51:32 +0100
aitor_czr  wrote:


Hi Steve:
I read in the past your page in troubleshooters dedicated to umenu. I
still didn't give it a try, but i'll do.

On the other hand, i'm improving the response time of the header in
the popupmenu. As some user in the IRC channel would say, this part
needs more love:)  Now, you need to add the whole "exec" field in the
*.desktop entries as arguments in the command line, for example:

popupmenu "exo-open --launch FileManager %u" "medit %F"

otherwise, the application will be missing in the header.

Hi Aitor,

I skimmed your source, and also the source of menu-cache.h, which I
found on the net someplace. I couldn't figure out the structure by
which your menu hierarchy is stored on the hard disk. Do you have any
documentation about configuring popupmenu's menu hierarchy?

Does popupmenu's menu hierarchy get updated every time someone installs
a new application? That would be a cool thing to add to UMENU2, but I
have no idea how to do it.

Does popupmenu have, or will it have, a mode by which someone can
modify the menu hierarchy or add/delete/change menu items via an
intuitive form that asks for and acquires user input? That's something
UMENU2 doesn't have yet.

You mentioned that part of popupmenu isn't as fast as you'd like
(presumably slower than the user can type/mouse). Does popupmenu run
anew everytime someone clicks on the start button? I'm pretty sure any
time consumption at all comparable to human typing speed involves
reading from the hard disk. In UMENU Classic I solved this by busting
the hierarchy file into individual single menu files. It was a mess.
UMENU2 puts the entire hierarchy in a directory tree, so the entirety
of the requested menu's information is contained in the direct
subdirectories of that menu entry's directory. Which makes it lightning
fast. Maybe you can do something like UMENU Classic or UMENU2, or
perhaps create an index file to point at specific menus within the
hierarchy. Or maybe the code in menu-cache.h/menu-cache.c is meant to
address this problem.


Thanks for your interest on the popupmenu. I'll replay in more detail to 
your requests shortly.  For now, i'll only clarify that the popupmenu's 
hierarchy is in the:


void gen_menu  (MenuCacheDir*, GtkWidget*);

calling itself recursivelly. Clone the newest sources of the popupmenu. 
I pushed all the tags to the remote repository; so, you don't need to 
create the upstream/0.1.2
 as you can see in the following screenshot, more sublevels are allowed 
under the root level in the directories hierarchy (in this case, the 
next level is libreoffice):


http://gnuinos.org/2018-01-30--1517320487_1600x900_scrot.png

I'll try to help you developing the GUI for your UMENU. This will not be 
very difficult, be sure.



Menus are fun, aren't they?


Yes, they are. This thread will be funny :)

Have a nice day,

  Aitor.



___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] upgraded to Ascii, but now sqwebmail isn't working

2018-01-30 Thread Gregory Nowak
Hi again.

Thanks to KatolaZ for your reply to my libapache-mod-mono issue. Your
comment that I'd be surprised how many production systems are running
Ascii stuck with me, and so I took the plunge, and upgraded my
production system again from jessie to Ascii.

The good news is that the upgrade seems to have gone without
problems. I haven't rebooted yet since upgrading, but I will be doing
that a bit later once I finalize things. Another good news is that
libapache2-mod-mono is indeed back, and does seem to work like it
should.

The bad news is that now sqwebmail isn't working, and it still did
after my upgrade to jessie. I have a couple users who insist on using
webmail exclusively, so this is another big one for me. I am using
postfix as my MTA, and courier for imap. Using imap over ssl does
work, so I know that both that and the courier authentication library
authdaemond are working. 

When I bring up cgi-bin/sqwebmail, I get this:

"System unavailable   System unavailable

   The web page you're trying to access is not available at this time.
   Please try again later.

   (connect: Permission denied)"

My apache logs and mail logs don't show anything unusual. I have also
restarted the sqwebmaild service, and that restarted without
errors. The interesting thing is that when I stop the sqwebmaild
service, I get the same web page. So, I suspect this has something to
do with how the sqwebmail web frontend communicates with the
sqwebmaild service. I haven't looked at the sqwebmail source code, and
a few web searches don't bring up anything explaining how the
communication takes place. Web searches on sqwebmail permission
denied and sqwebmail connect don't bring up anything useful either. 

There is one thing I changed after the sqwebmail install. It symlinks
/usr/lib/cgi-bin/sqwebmail to /usr/lib/courier/courier/webmail/webmail. Since
I don't follow symlinks from cgi-bin, I simply copied
/usr/lib/courier/courier/webmail/webmail to
/usr/lib/cgi-bin/sqwebmail. The courier docs indicate I can copy the
sqwebmail binary to where ever my cgi-bin scripts live. The
permissions for sqwebmail I have are:

-rwxr-xr-x 1 root root 14328 May  8  2017 /usr/lib/cgi-bin/sqwebmail

This is the same as for the installed webmail binary in
/usr/lib/courier/courier/webmail/webmail. 

To see if there is a difference, I uninstalled the sqwebmail package
that comes with Ascii, and installed the one that comes with jessie,
but that doesn't help. So whatever is causing this, doesn't seem to be
specific to the sqwebmail package.

Again, any suggestions on what else to look at are appreciated before
I find a courier list, or build sqwebmail from source, which should be
a bit better than rebuilding apache. Of course, it's possible a reboot is
all I need, but I don't see what real difference that would
make. Thanks.

Greg


-- 
web site: http://www.gregn.net
gpg public key: http://www.gregn.net/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)
If we haven't been in touch before, e-mail me before adding me to your contacts.

--
Free domains: http://www.eu.org/ or mail dns-mana...@eu.org
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng