|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc. |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
I thought it might be fun if I did this. At this point, I'm just tinkering. But one could add yum or apt4rpm/synaptic as well, or even all.
I did try going to #yast they said Quote:
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
||||
|
Actually, I had to do some debugging. The code looks like this
Code:
{ // begin
//===================================================================
// Start smart either Text (commandline) or GUI mode
//-------------------------------------------------------------------
integer status = 0;
if (UI::TextMode())
{
y2milestone("Running smart in command line mode.");
// Popup::Error(_("Cannot run smart in text-mode"));
status = (integer)UI::RunInTerminal("/usr/bin/smart --shell");
}
else
{
y2milestone("Running smart in GUI mode.");
// Popup::Error(_("Cannot run smart in GUI-mode"));
status = (integer)SCR::Execute(.target.bash, "/usr/bin/smart --gui");
}
y2milestone("smart finished with exit code: <%1>", status);
if (status == 0) {
return `next;
}
return `nil;
}
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
|||
|
> By default, it brings up the smart gui. Now as I said, you can modify
> this so that you could have yumex or synaptic if you wanted. i think what you have done has a lot of 'neat' appeal, but i wonder what is the added benefit of having YaST launch smart, rather than directly placing smart in the menu system and click on it instead of YaST.. or, you could make a menu item which launched a window where you could then have an icon to choose between: YaST Smart Yumex (whatever that is) Synaptic/Apt a root powered CLI whatever... -- palladium |
|
||||
|
Quote:
I'm not sure what you mean by "window where you could then have an icon" Here is what it looks like on my end
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
||||
|
I had to put the smart icon in /usr/share/YaST2/theme/openSUSE/icons/32x32 to get it to show up in YaST. The smart.desktop file looks like this
Code:
[Desktop Entry] Type=Application Categories=Settings;System;Qt;X-SuSE-YaST;X-SuSE-YaST-Software; X-KDE-ModuleType=Library X-KDE-RootOnly=true X-KDE-HasReadOnlyMode=true X-KDE-Library=yast2 X-SuSE-YaST-Call=smart X-SuSE-YaST-Group=Software X-SuSE-YaST-Argument= X-SuSE-YaST-RootOnly=true X-SuSE-YaST-AutoInst= X-SuSE-YaST-Geometry= X-SuSE-YaST-AutoInstResource= Icon=smart Exec=/sbin/yast2 smart Name=Smart Package Manager GenericName=A next generation package manager written in python that functions on multiple distributions X-KDE-SubstituteUID=true StartupNotify=true
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
||||
|
@palladium
Yes, I am aware. Infact, I have smart as a quick launch on my bottom pannel.
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
||||
|
Just as a point of interest, you can use the script, modify it of course, to put any admin app into YaST. Guarddog, firestarter, cups, and so on. Now you know how to make YaST into whatever you want.
__________________
My site, a portal to other sites. The Complete Computer Resource: http://thecompletecomputerresource.com/ If you want packages built, ask me. I'll either do it, or get someone else to. If they are not already built. |
|
||||
|
Pretty impressive Jonathan_R. And easier to grasp without the side issues of the missing posts.
__________________
Drop in and visit some time. |
|
||||
|
Quote:
I'm assuming the X reference can be changed for the GTK/Gnome version? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default up 17 days 5:40, 3 users, load average: 0.06, 0.02, 0.00 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18 |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|