[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-usability
Subject:    Re: New actions for group all/allFiles
From:       Daniele Pighin <daniele () dcs ! it>
Date:       2003-02-04 11:19:26
[Download RAW message or body]

Alle 16:42, domenica 2 febbraio 2003, Jens Benecke ha scritto:

> 	a) generate _sub_menus with the desktop actions?
> 	   i.e. "Compress files with ... ->" (zip, tar.gz, tar.bz2, ...)

agreed

>
> 	b) generate conditional menus with the desktop actions
> 	   (perhaps: if the .desktop file is executable, it will be
> 	   executed with a set of parameters instead and STDOUT
> 	   will be parsed)

I'd rather add a field in the service menu, with a shell command to be 
executed to decide wehter the menu entry must be displayed or not.
We could have a jolly variable (say "%f") to address the file we've right 
clicked onto, and use it as an argument for shell tests.
The problem with approach (as well as conditional approaches more generally) 
is that the evaluation of a condition might take some time, slowing down (or 
freezing, in some circumstances) the render of the menu.

> 	c) _hide_ global servicetype entries for _some_ users (or hosts),
> 	   (i.e. I have k3b installed so Konqueror shows "Make ISO
> 	   Image" in the directory submenu, but not everyone has read
> 	   access to the CD burner so not everyone finds this option
> 	   useful.

This is a subcase of b), being a condition on user/host identity.

Anyhow I've noticed an unconsistency in the definition of sevice menus: while 
serviceTypes entries have to be comma-separated (","), the separator for 
Actions entries is a semicolon (";").
How don't understand this choice, as it is quite confusing.
Does it have some historical reason??

Daniele
_______________________________________________
kde-usability mailing list
kde-usability@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic