Re: [Nix-dev] Adding xfce4 panel plugins

2012-10-11 Thread Eduard Carreras i Nadal
[...]

  Then I tried to install this package with nix-env -i
 /nix/store/**gas9rjahhdxkksv7k3fbq4kwgp17xr**
 vf-xfce4-cpufreq-plugin-1.0.0
 but when I try to add the plugin there is not cpufreq plugin in the list
 of xfce4 panel plugins.


Starting xfce4-panel with debugging:
$ xfce4-panel -q
$ PANEL_DEBUG=1 xfce4-panel

Then when I'm going to add a plugin shows:
xfce4-panel(module-factory): reading
/nix/store/8mik6lfry6sdjkvq25rqnbia00qjjx4p-xfce4-panel-4.8.6/share/xfce4/panel/plugins

And ls -1
/nix/store/8mik6lfry6sdjkvq25rqnbia00qjjx4p-xfce4-panel-4.8.6/share/xfce4/panel/plugins
actions.desktop
applicationsmenu.desktop
clock.desktop
directorymenu.desktop
launcher.desktop
pager.desktop
separator.desktop
showdesktop.desktop
systray.desktop
tasklist.desktop
windowmenu.desktop

Which are the only plugins listed

Cheers,

-- 
Eduard Carreras i Nadal ecarre...@gmail.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Adding xfce4 panel plugins

2012-10-11 Thread Eduard Carreras i Nadal
On Thu, Oct 11, 2012 at 11:53 PM, Eduard Carreras i Nadal 
ecarre...@gmail.com wrote:

 [...]

  Then I tried to install this package with nix-env -i
 /nix/store/**gas9rjahhdxkksv7k3fbq4kwgp17xr**
 vf-xfce4-cpufreq-plugin-1.0.0
 but when I try to add the plugin there is not cpufreq plugin in the list
 of xfce4 panel plugins.


 Starting xfce4-panel with debugging:
 $ xfce4-panel -q
 $ PANEL_DEBUG=1 xfce4-panel

 Then when I'm going to add a plugin shows:
 xfce4-panel(module-factory): reading
 /nix/store/8mik6lfry6sdjkvq25rqnbia00qjjx4p-xfce4-panel-4.8.6/share/xfce4/panel/plugins


More info: I've modified the xfce4-panel nix expression adding

  postInstall = ''
  mkdir -p $out/share/xfce4/panel-plugins
  '';

Then the log shows

xfce4-panel(module-factory): reading
/nix/store/kkadh1cq40y0rcn5l2i6pnxf3jcjv4zi-xfce4-panel-4.8.6/share/xfce4/panel/plugins
xfce4-panel(module-factory): reading
/nix/store/kkadh1cq40y0rcn5l2i6pnxf3jcjv4zi-xfce4-panel-4.8.6/share/xfce4/panel-plugins


But other line says
xfce4-panel(applicationsmenu): loading from
/run/current-system/sw/etc/xdg/menus/xfce-applications.menu which seems to
use /run/curreny-system/...

How can I do that xfce4-panel uses /run/current-system/sw/ as a prefix
instead of its own prefix?

Cheers,

-- 
Eduard Carreras i Nadal ecarre...@gmail.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Adding xfce4 panel plugins

2012-10-11 Thread Marc Weber
Excerpts from Eduard Carreras i Nadal's message of Fri Oct 12 00:42:55 +0200 
2012:
 How can I do that xfce4-panel uses /run/current-system/sw/ as a prefix
 instead of its own prefix?
look at the source code. Sometimes there are options, sometimes you have
to patch it.

Quicker way: Use a symlink:

ln -s $out-of-xfce/panel /var/run/panel

or the like

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Adding xfce4 panel plugins

2012-10-11 Thread Eduard Carreras i Nadal
On Fri, Oct 12, 2012 at 12:55 AM, Marc Weber marco-owe...@gmx.de wrote:

 Excerpts from Eduard Carreras i Nadal's message of Fri Oct 12 00:42:55
 +0200 2012:
  How can I do that xfce4-panel uses /run/current-system/sw/ as a prefix
  instead of its own prefix?
 look at the source code. Sometimes there are options, sometimes you have
 to patch it.


Making a patch[1] to xfce4-panel works fine, but seems ugly... I don't know
why $XDG_DATA_DIRS is empty. Can we do a wrapper in sh that export this
variable and then run xfce4-panel?

Maybe I'm saying a lot the nonsense...

Cheers,

[1]
https://github.com/ecarreras/nixpkgs/commit/aa4dc424596989d9ecac5047ea5126ec2a85cbf3

-- 
Eduard Carreras i Nadal ecarre...@gmail.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Adding xfce4 panel plugins

2012-10-11 Thread Eelco Dolstra
Hi,

On 11/10/12 19:32, Eelco Dolstra wrote:

 However, a much cleaner solution would be to make the panel use $XDG_DATA_DIRS
 for finding the *.desktop files of the plugins.  That would be more general
 because it would allow users to have their own plugins in their home 
 directories
 (so upstream might be willing to accept/implement something like this).  

Or maybe not, since Xfce apparently used to do this:

https://bugzilla.xfce.org/show_bug.cgi?id=5455

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev