maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Unable to go to settings (https://talk.maemo.org/showthread.php?t=84583)

ramsheed 2012-05-29 19:05

Unable to go to settings
 
Yesterday i scanned my device with norton and found some 650+ virus......as my Norton automatically deletes the infected files many files got deleted from my device....Now the "Settings" icon is not visible in device....

I made a short cut icon on desktop....but it does not opens the settings.....what can i do now :(

AJMAL P.M 2012-05-29 19:18

Re: Unable to go to settings
 
1 Attachment(s)
Copy the below shortcut to /usr/share/applications/ Then restart. Might help.

ramsheed 2012-05-29 19:30

Re: Unable to go to settings
 
Quote:

Originally Posted by AJMAL P.M (Post 1214552)
Copy the below shortcut to /usr/share/applications/ Then restart. Might help.

Is it the files for settings or just for icons?

michaaa62 2012-05-29 19:40

Re: Unable to go to settings
 
What device did you scan with which Norton tool??? Please be as verbose as possible.

AJMAL P.M 2012-05-29 19:41

Re: Unable to go to settings
 
Just shortcut icon for Settings in the launcher view. Anyway try your luck. (Inside is a .desktop file.)

ramsheed 2012-05-29 19:42

Re: Unable to go to settings
 
@ajmal.....can u tel me the x terminal to copy it to that directory?

ramsheed 2012-05-29 19:44

Re: Unable to go to settings
 
Quote:

Originally Posted by michaaa62 (Post 1214561)
What device did you scan with which Norton tool??? Please be as verbose as possible.

My nokia N900.....with Norton antivirus

AJMAL P.M 2012-05-29 19:54

Re: Unable to go to settings
 
Quote:

Originally Posted by ramsheed (Post 1214564)
@ajmal.....can u tel me the x terminal to copy it to that directory?

Download n extract the zip to somewhere. Say /Documents/

Then the code to copy:

cp -r /home/user/MyDocs/Documents/duicontrolpanel.desktop /usr/share/applications/

AJMAL P.M 2012-05-29 19:56

Re: Unable to go to settings
 
Quote:

Originally Posted by ramsheed (Post 1214566)
My nokia N900.....with Norton antivirus

oh sorry!! My fault. I thought it was N9 connected to pc. My fault.

michaaa62 2012-05-29 20:11

Re: Unable to go to settings
 
Since some applications use the MyDocs partition also to store their settings, it is a very bad idea to scan that filesystem completely. Do it on a per-file-base, whenever you exchange files from the N900 to windows.
Still i am not quite sure what the error is that you are facing, is it just the missing shortcut, or is the settings application corrupted?

polarbear 2012-05-29 21:10

Re: Unable to go to settings
 
Based upon the fact that you may have lost/corrupted other files that you/may not be able to see in addition to your settings, I would suggest you back everything up and do a full reflash of the file system just in case.

That being said, if you wish to just try and repair it first, your first course of action is to determine if only the .desktop file has been lost or if the settings program itself is also gone.

ramsheed 2012-05-29 21:42

Re: Unable to go to settings
 
Quote:

Originally Posted by AJMAL P.M (Post 1214581)
oh sorry!! My fault. I thought it was N9 connected to pc. My fault.

Did not work broo

ramsheed 2012-05-29 21:45

Re: Unable to go to settings
 
Quote:

Originally Posted by polarbear (Post 1214622)
Based upon the fact that you may have lost/corrupted other files that you/may not be able to see in addition to your settings, I would suggest you back everything up and do a full reflash of the file system just in case.

That being said, if you wish to just try and repair it first, your first course of action is to determine if only the .desktop file has been lost or if the settings program itself is also gone.

Icon still exist in shortcuts....but cant open it

ramsheed 2012-05-29 21:50

Re: Unable to go to settings
 
Quote:

Originally Posted by michaaa62 (Post 1214593)
Since some applications use the MyDocs partition also to store their settings, it is a very bad idea to scan that filesystem completely. Do it on a per-file-base, whenever you exchange files from the N900 to windows.
Still i am not quite sure what the error is that you are facing, is it just the missing shortcut, or is the settings application corrupted?

icon still exist in my desktop...but can't open it

polarbear 2012-05-29 22:25

Re: Unable to go to settings
 
Alright, then the next step for you is to check /usr/bin and make sure you have both controlpanel and controlpanel.launch

qwazix 2012-05-29 23:13

Re: Unable to go to settings
 
Is it possible that Norton Antivirus deleted a file from /usr/? I suspect that there is something going with a dotfolder in MyDocs and not anything on the rootfs. After all windows do not have access to the rootfs when connected as mass storage or otherwise. Even if you did manage to connect it, win wouldn't be able to read the ext partition.

Therefore a sane approach would be to run /usr/bin/controlpanel from terminal and see what errors it spews, then uninstall any app that adds a control panel applet (maybe it has corrupted settings and causes control panel to crash). Last resort before reflash is to remove all the dotfolders from MyDocs, except .documents, .pictures, .videos etc.

polarbear 2012-05-30 00:27

Re: Unable to go to settings
 
Did he say that he had it connected in mass storage mode? I must have missed that. In that case, you're correct, Norton shouldn't have had any way to make changes to that. It must be something else, give what qwazix said a try.

AJMAL P.M 2012-05-30 13:05

Re: Unable to go to settings
 
Quote:

Originally Posted by ramsheed (Post 1214637)
Did not work broo

Forget it. That was for N9.

ramsheed 2012-05-30 14:30

Re: Unable to go to settings
 
Quote:

Originally Posted by qwazix (Post 1214668)
Is it possible that Norton Antivirus deleted a file from /usr/? I suspect that there is something going with a dotfolder in MyDocs and not anything on the rootfs. After all windows do not have access to the rootfs when connected as mass storage or otherwise. Even if you did manage to connect it, win wouldn't be able to read the ext partition.

Therefore a sane approach would be to run /usr/bin/controlpanel from terminal and see what errors it spews, then uninstall any app that adds a control panel applet (maybe it has corrupted settings and causes control panel to crash). Last resort before reflash is to remove all the dotfolders from MyDocs, except .documents, .pictures, .videos etc.


can u help me with xterminal command to do it? pls

ramsheed 2012-05-31 21:16

Re: Unable to go to settings
 
@qwaix.....pls reply.....i'm in deep trouble now

polarbear 2012-05-31 22:11

Re: Unable to go to settings
 
Quote:

Originally Posted by ramsheed (Post 1214972)
can u help me with xterminal command to do it? pls

Literally just:

Code:

/usr/bin/controlpanel

qwazix 2012-05-31 22:13

Re: Unable to go to settings
 
Before trying to repair anything please post the result of the terminal command

/usr/bin/controlpanel

here. (Assuming that is the name of the binary)

Possible solution 1
================================================== ======

Uninstall all programs (from Application Manager) that you remember that had an entry in settings (Like theme customizer, font manager, led patterns etc) and try the settings application again.

Possible solution 2
================================================== ======

First thing to do is plug in your phone on your pc, connect in mass storage mode and open the device. What you see now is the MyDocs folder (/home/user/MyDocs)

Choose show hidden files (Tools|Folder Options|...|Show hidden files and folders) and copy EVERYTHING to your pc (because we might erase something you need in the next steps)

Now, I don't have my N900 with me (it's in the hands of Nokia) and I do not remember if dotfolders (folders that start with a dot, i.e. application settings folders, like .osso-notes) reside in /home/user, or /home/user/MyDocs. Someone with his N900 at hand please confirm one or the other.

From the description of your problem it seems they should be in MyDocs so that Norton might have tampered with them.

Anyway, the idea is to remove all the folders that start with a dot (if they are in MyDocs you can do that on your pc. Ensure you have enabled "show hidden files" then delete all folders that start with a dot from your device, except .documents, .images (or .pictures, don't remember), .sounds, .videos. Then try launching settings again. If it is still not working try to delete all the contents of all the above (.documents etc.) folders too (not the folders themselves). If even this does not solve the problem you can try deleting everything in MyDocs, either from your pc or from terminal. Please do not continue before posting the result of running settings via terminal in this thread. It may well indicate something that will prove the following step stupid or ineffective.

WARNING: This may cause you to lose the customized icons for these folders permanently, but if that fails too, then the only thing that remains is a reflash, which will restore everything, so if you have reached here you probably have nothing to lose.

DISCLAIMER:
Do not use this command if you haven't made sure a backup of everything in the 27GB memory of your N900 is backed up safely. This will discard all your documents and probably settings. Passers by please do not try this to solve potential problems unless you know exactly what you are doing.

the command is rm -rf /home/user/MyDocs/*

Now settings should be working fine if I am right, and you can copy your stuff back to the phone, but you have to do it folder by folder, and keep testing to see what folder (or file) caused the problem, and delete it.

ramsheed 2012-06-01 12:08

Re: Unable to go to settings
 
Quote:

Originally Posted by qwazix (Post 1215694)
Before trying to repair anything please post the result of the terminal command

/usr/bin/controlpanel

here. (Assuming that is the name of the binary)

Possible solution 1
================================================== ======

Uninstall all programs (from Application Manager) that you remember that had an entry in settings (Like theme customizer, font manager, led patterns etc) and try the settings application again.

Possible solution 2
================================================== ======

First thing to do is plug in your phone on your pc, connect in mass storage mode and open the device. What you see now is the MyDocs folder (/home/user/MyDocs)

Choose show hidden files (Tools|Folder Options|...|Show hidden files and folders) and copy EVERYTHING to your pc (because we might erase something you need in the next steps)

Now, I don't have my N900 with me (it's in the hands of Nokia) and I do not remember if dotfolders (folders that start with a dot, i.e. application settings folders, like .osso-notes) reside in /home/user, or /home/user/MyDocs. Someone with his N900 at hand please confirm one or the other.

From the description of your problem it seems they should be in MyDocs so that Norton might have tampered with them.

Anyway, the idea is to remove all the folders that start with a dot (if they are in MyDocs you can do that on your pc. Ensure you have enabled "show hidden files" then delete all folders that start with a dot from your device, except .documents, .images (or .pictures, don't remember), .sounds, .videos. Then try launching settings again. If it is still not working try to delete all the contents of all the above (.documents etc.) folders too (not the folders themselves). If even this does not solve the problem you can try deleting everything in MyDocs, either from your pc or from terminal. Please do not continue before posting the result of running settings via terminal in this thread. It may well indicate something that will prove the following step stupid or ineffective.

WARNING: This may cause you to lose the customized icons for these folders permanently, but if that fails too, then the only thing that remains is a reflash, which will restore everything, so if you have reached here you probably have nothing to lose.

DISCLAIMER:
Do not use this command if you haven't made sure a backup of everything in the 27GB memory of your N900 is backed up safely. This will discard all your documents and probably settings. Passers by please do not try this to solve potential problems unless you know exactly what you are doing.

the command is rm -rf /home/user/MyDocs/*

Now settings should be working fine if I am right, and you can copy your stuff back to the phone, but you have to do it folder by folder, and keep testing to see what folder (or file) caused the problem, and delete it.


the comman which u gave me....it opened the settings for me.... :) thank u.....thanku very uch.....should i do something more now?

qwazix 2012-06-01 12:13

Re: Unable to go to settings
 
Do settings now open from the icon? If not the .desktop file is damaged and you will have to replace it. Please somebody with a N900 at hand post /usr/share/applications/hildon/settings.desktop (or similarly named file) here.

reinob 2012-06-01 12:30

Re: Unable to go to settings
 
1 Attachment(s)
OK, it's /usr/share/applications/hildon/hildon-control-planel.desktop

Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=copa_ap_cp_name
Comment=copa_ap_cp_name_thumb
Exec=/usr/bin/controlpanel
Icon=general_settings
X-Icon-path=/usr/share/pixmaps/
X-Window-Icon=tn-bookmarks-link
X-HildonDesk-ShowInToolbar=true
X-Osso-Service=controlpanel
X-Osso-Type=application/x-executable
X-Osso-User-Position=14
X-Maemo-Category=Main
X-Text-Domain=hildon-control-panel
X-Maemo-Wm-Class=Controlpanel


vi_ 2012-06-01 12:55

Re: Unable to go to settings
 
I am just going to cut this thread short and tell you the unfortunate truth.

Backup EVRYTHING you can then perform a complete reflash.

I will never understand what possessed you when you decided to run a virus scanner on your N900. Do not ever do that. Norton has broken everything by deleting all your files.

ramsheed 2012-06-01 16:27

Re: Unable to go to settings
 
Quote:

Originally Posted by reinob (Post 1215927)
OK, it's /usr/share/applications/hildon/hildon-control-planel.desktop

Code:

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=copa_ap_cp_name
Comment=copa_ap_cp_name_thumb
Exec=/usr/bin/controlpanel
Icon=general_settings
X-Icon-path=/usr/share/pixmaps/
X-Window-Icon=tn-bookmarks-link
X-HildonDesk-ShowInToolbar=true
X-Osso-Service=controlpanel
X-Osso-Type=application/x-executable
X-Osso-User-Position=14
X-Maemo-Category=Main
X-Text-Domain=hildon-control-panel
X-Maemo-Wm-Class=Controlpanel


so i just need to write the xterminal u gave and everything will go fine right?

qwazix 2012-06-01 18:25

Re: Unable to go to settings
 
no no. You have to copy this file on your device (the N900 folder i.e. MyDocs), then open xterm and write

sudo gainroot
cp MyDocs/hildon-control-panel.desktop.txt /usr/share/applications/hildon/hildon-control-planel.desktop

ramsheed 2012-06-01 18:40

Re: Unable to go to settings
 
Quote:

Originally Posted by qwazix (Post 1216086)
no no. You have to copy this file on your device (the N900 folder i.e. MyDocs), then open xterm and write

sudo gainroot
cp MyDocs/hildon-control-panel.desktop.txt /usr/share/applications/hildon/hildon-control-planel.desktop

i did it broo....now all is fine.... @qwazix...reniob....million thanks :)

sicelo 2012-06-01 18:58

Re: Unable to go to settings
 
Problem is clearly unrelated to Norton whatsoever. You have a corrupt filesystem, or crap software. I bet you'll run into bigger problems sooner than later.
as vi_ mentioned, you will eventually have to reflash.


All times are GMT. The time now is 12:50.

vBulletin® Version 3.8.8