Qtopia-interest Archive, February 2008
Disabling applications
Message 1 in thread
Hello,
I'd like to disable the camera application, and since there seems to be
no per-application options for the configure script, I modified
opt/Qtopia/etc/defaultbuttons.conf and the icon now does not show on the
main menu.
However, on the Applications screen there is still a "Camera" item. Is
there a simple way to remove this?
Thanks!
,
John
--
[ signature omitted ]
Message 2 in thread
John Faith wrote:
> Hello,
> I'd like to disable the camera application, and since there seems to be
> no per-application options for the configure script, I modified
> opt/Qtopia/etc/defaultbuttons.conf and the icon now does not show on the
> main menu.
>
> However, on the Applications screen there is still a "Camera" item. Is
> there a simple way to remove this?
>
> Thanks!
You would have to do that at configure time.
In general.pri, just remove the camera entry and reconfigure/build.
The apps that get installed when you run make install, are placed in the
sqlite database. You can edit this on the desktop and remove the entries
that way. But there is no way to simple remove the entries.
--
[ signature omitted ]
Message 3 in thread
Lorn Potter wrote:
> John Faith wrote:
>> Hello,
>> I'd like to disable the camera application, and since there seems to
>> be no per-application options for the configure script, I modified
>> opt/Qtopia/etc/defaultbuttons.conf and the icon now does not show on
>> the main menu.
>>
>> However, on the Applications screen there is still a "Camera" item.
>> Is there a simple way to remove this?
>
> You would have to do that at configure time.
>
> In general.pri, just remove the camera entry and reconfigure/build.
>
> The apps that get installed when you run make install, are placed in the
> sqlite database. You can edit this on the desktop and remove the entries
> that way. But there is no way to simple remove the entries.
Is there a more script-friendly way to enable/disable applications
versus editing the .pri file by hand? I guess that using something like
sed might be fragile if the format of general.pri changes.
Thanks,
John
--
[ signature omitted ]
Message 4 in thread
On Saturday 02 February 2008 08:12, John Faith wrote:
> Lorn Potter wrote:
> > John Faith wrote:
> >> Hello,
> >> I'd like to disable the camera application, and since there
> >> seems to be no per-application options for the configure
> >> script, I modified opt/Qtopia/etc/defaultbuttons.conf and the
> >> icon now does not show on the main menu.
> >>
> >
> > In general.pri, just remove the camera entry and
> > reconfigure/build.
> >
>
> Is there a more script-friendly way to enable/disable
> applications versus editing the .pri file by hand? I guess that
> using something like sed might be fragile if the format of
> general.pri changes.
>
If you have your own device profile, create or edit the projects.pri
in the device profile directory to contain something like:
PROJECTS-=applications/camera
--
[ signature omitted ]
Message 5 in thread
Rohan McGovern wrote:
> On Saturday 02 February 2008 08:12, John Faith wrote:
>> Lorn Potter wrote:
>>> John Faith wrote:
>>>> Hello,
>>>> I'd like to disable the camera application, and since there
>>>> seems to be no per-application options for the configure
>>>> script, I modified opt/Qtopia/etc/defaultbuttons.conf and the
>>>> icon now does not show on the main menu.
>>>>
>
>>> In general.pri, just remove the camera entry and
>>> reconfigure/build.
>>>
>
>> Is there a more script-friendly way to enable/disable
>> applications versus editing the .pri file by hand? I guess that
>> using something like sed might be fragile if the format of
>> general.pri changes.
>>
>
> If you have your own device profile, create or edit the projects.pri
> in the device profile directory to contain something like:
>
> PROJECTS-=applications/camera
For some reason this did not work for me. I've tried
"PROJECTS-=applications/camera" and "PROJECTS*-=applications/camera" in
my devices/<device_name>/projects.pri and the camera app still gets
built. Do the changes to PROJECTS need to be inside braces, like "media
{ ... }" to match the format of src/general.pri?
Thanks,
John
--
[ signature omitted ]