2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

This fix is for #212500 "y2controlcenter-gnome does not find AppArmor

icons" and its duplicate #297243 "Missing YaST icon: All app armor
icons".

The problem was that (a) the .desktop spec doesn't really allow having
path elements in the "Icon=" entry, and (b) that y2controlcenter-gnome
was looking in /usr/share/icons/hicolor/[size]/apps/ for the apparmor
icons, which weren't there.
This commit is contained in:
Steve Beattie
2007-08-14 03:51:32 +00:00
parent 7e8fe42967
commit 38c6f062f3
37 changed files with 35 additions and 19 deletions

View File

@@ -35,9 +35,9 @@ install:
mkdir -p ${DESTDIR}/usr/share/applications/YaST2/groups
mkdir -p ${DESTDIR}/usr/lib/YaST2/servers_non_y2
mkdir -p ${DESTDIR}/usr/lib/perl5/vendor_perl/Immunix
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/48x48/apps/apparmor
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/32x32/apps/apparmor
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/22x22/apps/apparmor
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/48x48/apps
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/32x32/apps
mkdir -p ${DESTDIR}/${THEMEDIR}/icons/22x22/apps
mkdir -p ${DESTDIR}/usr/bin
mkdir -p ${DESTDIR}/etc/apparmor
cp -a src/clients/* ${DESTDIR}/usr/share/YaST2/clients/
@@ -46,9 +46,9 @@ install:
cp -a src/desktop/* ${DESTDIR}/usr/share/applications/YaST2/
cp -a src/desktop/groups/* ${DESTDIR}/usr/share/applications/YaST2/groups/
cp -a src/perl/* ${DESTDIR}/usr/lib/perl5/vendor_perl/Immunix
cp -a src/icons/48x48/* ${DESTDIR}/${THEMEDIR}/icons/48x48/apps/apparmor
cp -a src/icons/32x32/* ${DESTDIR}/${THEMEDIR}/icons/32x32/apps/apparmor
cp -a src/icons/22x22/* ${DESTDIR}/${THEMEDIR}/icons/22x22/apps/apparmor
cp -a src/icons/48x48/* ${DESTDIR}/${THEMEDIR}/icons/48x48/apps
cp -a src/icons/32x32/* ${DESTDIR}/${THEMEDIR}/icons/32x32/apps
cp -a src/icons/22x22/* ${DESTDIR}/${THEMEDIR}/icons/22x22/apps
cp -a src/bin/* ${DESTDIR}/usr/bin
cp -a src/apparmor/* ${DESTDIR}/etc/apparmor
install -m 755 src/agents/* ${DESTDIR}/usr/lib/YaST2/servers_non_y2/

View File

@@ -66,7 +66,7 @@ define any MainSequence() ``{
map new_profile = (map) SCR::Read (.subdomain_profiles, Settings["CURRENT_PROFILE"]:"" );
Settings["PROFILE_MAP"] = new_profile;
Wizard::CreateDialog();
Wizard::SetTitleIcon("apparmor/add_profile");
Wizard::SetTitleIcon("apparmor_add_profile");
any ret = Sequencer::Run(aliases, sequence);
Wizard::CloseDialog();
if ( ret == `abort ) {

View File

@@ -53,7 +53,7 @@ define any MainSequence() ``{
];
Wizard::CreateDialog();
Wizard::SetTitleIcon("apparmor/delete_profile");
Wizard::SetTitleIcon("apparmor_delete_profile");
any ret = Sequencer::Run(aliases, sequence);
Wizard::CloseDialog();
Settings = remove( Settings, "CURRENT_PROFILE");

View File

@@ -29,7 +29,7 @@ define any MainSequence() ``{
map aliases = $[
"showProfile" : ``(DisplayProfileForm(Settings["CURRENT_PROFILE"]:"", false)),
"showHat" : ``(DisplayProfileForm(Settings["CURRENT_HAT"]:"", true)),
"chooseProfile" : ``(SelectProfileForm(profiles, _("Please make a selection from the listed profiles and press Next to edit the profile."), _("Edit Profile - Choose profile to edit"), "apparmor/edit_profile" )),
"chooseProfile" : ``(SelectProfileForm(profiles, _("Please make a selection from the listed profiles and press Next to edit the profile."), _("Edit Profile - Choose profile to edit"), "apparmor_edit_profile" )),
];
@@ -54,7 +54,7 @@ define any MainSequence() ``{
];
Wizard::CreateDialog();
Wizard::SetTitleIcon("apparmor/edit_profile");
Wizard::SetTitleIcon("apparmor_edit_profile");
any ret = Sequencer::Run(aliases, sequence);
Wizard::CloseDialog();
Settings = remove( Settings, "CURRENT_PROFILE");

View File

@@ -76,7 +76,7 @@ define any mainSequence() ``{
];
Wizard::CreateDialog();
Wizard::SetTitleIcon("apparmor/view_profile");
Wizard::SetTitleIcon("apparmor_view_profile");
any ret = Sequencer::Run(aliases, sequence);
Wizard::CloseDialog();
return ret;

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/view_profile
Icon=apparmor_view_profile
Exec=/sbin/yast2 SD_Report
Name=AppArmor Reports

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/add_profile
Icon=apparmor_add_profile
Exec=/sbin/yast2 SD_AddProfile
Name=Manually Add Profile

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/control_panel
Icon=apparmor_control_panel
Exec=/sbin/yast2 subdomain
Name=AppArmor Control Panel

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/delete_profile
Icon=apparmor_delete_profile
Exec=/sbin/yast2 SD_DeleteProfile
Name=Delete Profile

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/edit_profile
Icon=apparmor_edit_profile
Exec=/sbin/yast2 SD_EditProfile
Name=Edit Profile

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/creation_wizzard
Icon=apparmor_creation_wizard
Exec=/sbin/yast2 GenProf
Name=Add Profile Wizard

View File

@@ -16,7 +16,7 @@ X-SuSE-YaST-Geometry=
X-SuSE-YaST-SortKey=
X-SuSE-YaST-AutoInstClonable=false
Icon=apparmor/update_wizzard
Icon=apparmor_update_wizard
Exec=/sbin/yast2 LogProf
Name=Update Profile Wizard

View File

@@ -11,6 +11,6 @@ X-SuSE-YaST-Group=AppArmor
X-SuSE-YaST-SortKey=50
OnlyShowIn=X-SuSE-YaST;
Icon=apparmor/app_armor
Icon=apparmor_app_armor
Name=Novell AppArmor

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -70,6 +70,21 @@ for f in `find $RPM_BUILD_ROOT/%{_prefix}/share/applications/YaST2/ -name "*.des
fi
done
# make icons available to GNOME control center (hicolor theme)
# (bug #212500)
mkdir -p ${RPM_BUILD_ROOT}/usr/share/icons/hicolor/22x22/apps
mkdir -p ${RPM_BUILD_ROOT}/usr/share/icons/hicolor/32x32/apps
mkdir -p ${RPM_BUILD_ROOT}/usr/share/icons/hicolor/48x48/apps
cd $RPM_BUILD_ROOT/%{themedir}/icons
for dir in 22x22 32x32 48x48; do
cd $RPM_BUILD_ROOT/%{themedir}/icons/${dir}/apps
icons=$(ls *.png)
cd $RPM_BUILD_ROOT/usr/share/icons/hicolor/${dir}/apps
for icon in ${icons}; do
ln -s ../../../../YaST2/theme/current/icons/${dir}/apps/${icon} .
done
done
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -84,6 +99,7 @@ done
/usr/lib/YaST2/servers_non_y2
/usr/lib/perl5/vendor_perl/*
%{themedir}/icons
/usr/share/icons/hicolor/
%doc COPYING.LGPL
%dir %attr(-,root,root) /etc/apparmor
%config(noreplace) /etc/apparmor/reports.crontab