Hi!
I wanted to start setting the dialog title for YaST dialogs and found out
there is the infastructure prepared on the libyui-side. Just YCP does not use
it.
This patch improves the Wizard library a bit to do setting both icon and
dialog title for the wizard dialog - the values are taken from the .desktop
file and are localized.
All you need to do in a module now is to replace
Wizard::SetDesktopIcon("desktop-file-name");
to
Wizard::SetDesktopTitleAndIcon("desktop-file-name");
If you accept the patch, I will go through the modules and start to change
them to use the new functionality.
Comments welcome!
Stano
P.S. There is no testsuite at the moment - desktop file reading involves
agents (see Lukas' mail about trouble there), also Wizard testsuite is rather
non-existent.
Hi!
I've just removed all-packages list from yast2-devtools. Also, the check for
the file during 'make package' is not there anymore. If you want to live in
the fantastic world without editting 'all-packages' file, make sure to
make -f Makefile.cvs
after installing yast2-devtools 2.21.3
Stano
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-devel+help(a)opensuse.org
Hello,
could someone please apply the attached patch to the installation
module and push the new version of yast2-installation into
Factory? It modifies the openSUSE control file to use lightdm
instead of gdm as the default display manager for Xfce.
Thanks,
--
Guido Berhoerster
My factory submit was declined because of this:
> review -> declined
>
> Comment:
> PLEASE REMOVE PREFIX /USR !!! Fix your scripts (and try spec-cleaner or
> jengelhart or any other tool), we're tired of repeating every time....
>
> https://build.opensuse.org/request/diff/84381
Why do we have the prefix set created in our spec files? Is there a bug in
devtools?
Jiri
--
Jiri Suchomel
SUSE LINUX, s.r.o. e-mail: jsuchome(a)suse.cz
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Praha 9, Czech Republic http://www.suse.cz
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-devel+help(a)opensuse.org
Hi,
I have this idea and Lukas has pointed out that someone could be
interested in it for the Hack Week, so here goes:
As I am thinking about refactoring the network code, not having
objects in YCP is a pain. The twist is, I don't want to add YCP
objects but use Ruby objects. (We can already use Perl objects,
yast2-storage does it, but it's limited.)
Here's sample code to show how it could look, modeled after
http://www.ruby-doc.org/stdlib-1.8.7/libdoc/uri/rdoc/classes/URI.html
{
import "Assert";
// Yes, you can! (also in SP2)
// http://svn.opensuse.org/viewvc/yast/trunk/yast2/library/modules/Assert.ycp?…
// Original Ruby code:
// require 'uri'
import $[
"what": "uri",
"language": "ruby",
"namespaces": ["URI", "URI::HTTP"]
];
/*
The above complicated syntax enables
- loading modules from elsewhere than /usr/share/YaST2/modules
- loading YCP namespaces (Ruby modules (classes))
named otherwise than the file they are in,
without needing to annotate them with TYPEINFO
(like perl-bindings/pluglib-bindings do)
*/
// uri = URI.parse("http://www.ruby-lang.org/")
any uri = URI::parse("http://www.ruby-lang.org/"); // [1]
// assert_equal "http", uri.scheme
Assert::Equal("http", uri->scheme());
// newuri = URI::HTTP.build( {:host => 'www.example.com', :path => '/foo/bar'})
any newuri = URI::HTTP::build($[ `host: "www.example.com", `path: "/foo/bar"]);
// assert_equal "http://www.example.com/foo/bar", newuri.request_uri
Assert::Equal ("http://www.example.com/foo/bar", newuri->request_uri());
}
Formally, whereas now YCP has
NAMESPACE :: IDENTIFIER ( PARAMS )
which calls a function (a module/class method in Ruby, a class
method in Perl), we add
EXPRESSION -> IDENTIFIER ( PARAMS )
which calls a method (an instance method in Ruby.
[1] "any" is a lie, the type is actually a distinct one,
called YCPExternal in C++. We could use "extern" which is currently
an unused reserved word in YCP.
But URIs are not my target. I am aiming for
{
any eth = SUSE::Ifcfg::new("eth0");
any br = SUSE::Ifcfg::Bridge::new("br0");
br->startmode(`auto);
br->add(eth);
/*
br->add will also set:
eth->bootproto(`none);
eth->startmode(br->startmode());
*/
any tap = SUSE::Ifcfg::Tap::new("tap0")->tunnel_set_owner("tux");
br->add(tap);
foreach(any i, [br, tap, eth], { i->save(); });
}
if (you->are_interested()) {
you->please()->tell(martin);
}
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
kthxbai();
Hi,
one of my Hack Week ideas is testing YaST on http://river.suse.de/
is anyone interested?
As Duncan mentioned some time ago, we have many interdependent
modules so it is not easy:
http://lists.opensuse.org/yast-devel/2011-06/msg00096.html
I thought a simple start would be to report changes that are in SVN
but not in OBS. (which was Lada's gripe)
For that, we can
1) simply diff the .changes (totally easy)
or
2) run
make -f Makefile.cvs
make package-local CHECK_SYNTAX=false
and diff the tarballs (surely there are some smart tarball diffs,
right?)
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Hi all,
as I mentioned on the call there are many changes in yast modules
which are only in SVN but were not submitted to OBS Factory/12.1.
It would be a shame to get a bug report after 12.1 is released and
find out that it has been fixed but nobody has submitted the package...
So please, check your packages and submit them if needed.
Here is the list of packages where I did some changes related to systemd
support and which I'll submit soon, so you don't have to check/submit these packages:
yast2
yast2-dns-server
yast2-inetd
yast2-irda
yast2-iscsi-client
yast2-ldap-client
yast2-nfs-client
yast2-nfs-server
yast2-nis-client
yast2-ntp-client
yast2-runlevel
yast2-samba-client
yast2-samba-server
yast2-tftp-server
--
Best Regards
Ladislav Slezák
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak(a)suse.cz
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-devel+help(a)opensuse.org