maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   *** 4 user Agents in the QuickLaunch BAR *** (https://talk.maemo.org/showthread.php?t=75012)

santiago 2011-07-17 18:06

*** 4 user Agents in the QuickLaunch BAR ***
 
2 Attachment(s)
Hi, i want to share with you my customization to change the user agent in one click tapping on the Status Menu Bar and selecting one of the user agents (you'll have Firefox 6 user agent, Iphone user agent, Android user agent, Maemo (n900) default user agent. I did it becouse sometimes i need to change it manually to enter in some Wap Chats and/or mobile portals.

*** example: if you use, the live chat europe service, you are not able to see user's pictures with the default user agent becouse the server recognizes you like from a PC and resizes the pictures in extra low quality... I was not able to see user's pictures!

################################################## ##
################################################## ##
Step 1
------------------------------------------------------------------------------------
Download and install Hide User Agent
Download and install Quick-Launch
Download and install rootsh

################################################## ##
################################################## ##
Step 2
------------------------------------------------------------------------------------
Download the attachment, extract the folder CUSTOMIZATION and paste it in the N900 MyDocs folder

Open Xterminal on your N900 and paste this code
Code:

root
cp -r /home/user/Mydocs/CUSTOMIZATION/opt/HideUserAgent /opt/
chmod +rwx /opt/HideUserAgent/*
cp -r /home/user/Mydocs/CUSTOMIZATION/usr/share/applications/hildon /usr/share/applications/hildon
cp -r /home/user/Mydocs/CUSTOMIZATION/usr/share/icons/hicolor/48x48/hildon /usr/share/icons/hicolor/48x48/hildon
rm -r /home/user/Mydocs/CUSTOMIZATION
exit
close

################################################## ##
################################################## ##
Step 3
------------------------------------------------------------------------------------
Go to the Menu, open the control panel settings, open the Quick Launch Menu and start to setup the Buttons.. User Agents Shortcuts are:

Firefox User Agent
Android User Agent
Iphone User Agent
Maemo User Agent

Setup all the buttons with these links, and select the OK button to save.

################################################## ##
################################################## ##
Step 4
------------------------------------------------------------------------------------
Reboot the System and you are ready to switch the User Agent clicking in the status menu bar. All the times that you will change the user agent, a Screen Message will inform you about the current setting, the browser will be closed to apply the selected user agent. A female voice will tell you about that

Ciao ;)

THX to the Quick Lauch Bar's creator
THX to the Hide User Agent's creator

Sorry for my bad english

Creamy Goodness 2011-07-19 04:24

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
thanks for taking the time to write out the tutorial!

Estel 2011-07-19 04:51

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
Nice thing, but it's pity, that it needs Quick-Launch - I already use it for choice between fCam, HDR, Lowlight and cameraui2 (and torch ;) ) when camera lens is opened.

I suppose that, with little modification, it can be used just by desktop shortcut or Queen Beecon Widget engine?

Creamy Goodness 2011-07-19 06:17

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
you could install camera lens launcher and get a menu when you open the lens cover, then you have quick launch free again...

santiago 2011-07-19 12:13

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
Quote:

Originally Posted by Estel (Post 1053850)
Nice thing, but it's pity, that it needs Quick-Launch - I already use it for choice between fCam, HDR, Lowlight and cameraui2 (and torch ;) ) when camera lens is opened.

I suppose that, with little modification, it can be used just by desktop shortcut or Queen Beecon Widget engine?

yes, you can use it like desk shortcuts... Open with a text editor, from /usr/share/applications/hildon/ the files fox.desktop, iphone.desktop, maemo.desktop, android.dektop and delete from them the line

Code:

NoDisplay=true
Save them, and you will have the shortcuts... If you want to use them with queenbecon, you have the scripts on

/opt/HideUserAgent

they are

android, firefox, maemo, iphone

;)

kayamagan 2011-07-20 09:56

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
i just got a probleme with your method to change the useragents, siantago!

first one, change in the status bar menu not modify the useragent of microb when i'm surfing. and this, for the 4s U.A (realize the teste on this website:Whats My User Agent). i have the same U.A at the begining, it never changed.

2nd one, when i want to remove HIDEUSERAGENT (rootsh or app manage) i can't. try to remove hideuseragent by xTerm give me the follows results:

"
/home/user # apt-get remove --purge hideuseragent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hideuseragent*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 119kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 29793 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--purge):
subprocess pre-removal script returned error exit status 127
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
Errors were encountered while processing:
hideuseragent
E: Sub-process /usr/bin/dpkg returned an error code (1)


plz can you tell me what is wrong and what i have to do to solve this probleme?

thnx

santiago 2011-07-21 10:55

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
Quote:

Originally Posted by kayamagan (Post 1054649)
i just got a probleme with your method to change the useragents, siantago!

first one, change in the status bar menu not modify the useragent of microb when i'm surfing. and this, for the 4s U.A (realize the teste on this website:Whats My User Agent). i have the same U.A at the begining, it never changed.

2nd one, when i want to remove HIDEUSERAGENT (rootsh or app manage) i can't. try to remove hideuseragent by xTerm give me the follows results:

"
/home/user # apt-get remove --purge hideuseragent
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hideuseragent*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
After this operation, 119kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 29793 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--purge):
subprocess pre-removal script returned error exit status 127
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
Errors were encountered while processing:
hideuseragent
E: Sub-process /usr/bin/dpkg returned an error code (1)


plz can you tell me what is wrong and what i have to do to solve this probleme?

thnx

hi, try manually

Open xterm, paste all of this
Code:

root
rm -r /opt/HideUserAgent
rm -r /var/lib/dpkg/info/hideuseragent.*
dpkg -r hideuseragent
close
close


kayamagan 2011-07-21 11:18

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
Quote:

Originally Posted by santiago (Post 1055309)
hi, try manually

Open xterm, paste all of this
Code:

root
rm -r /opt/HideUserAgent
rm -r /var/lib/dpkg/info/hideuseragent.*
dpkg -r hideuseragent
close
close


but below this is the result:

/home/user # rm -r /opt/HideUserAgent
/home/user # rm -r /var/lib/dpkg/HideUserAgent.*
rm: cannot remove '/var/lib/dpkg/HideUserAgent.*': No such file or directory

/home/user # dpkg -r hideuseragent
(Reading database ... 29813 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--remove):
subprocess pre-removal script returned error exit status 127
chmod: /opt/HideUserAgent/MicroBUserAgent.sh: No such file or directory
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
chown: /opt/HideUserAgent/UA.txt: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hideuseragent
/home/user #

What's wrong ?

santiago 2011-07-21 12:10

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
Quote:

Originally Posted by kayamagan (Post 1055324)
but below this is the result:

/home/user # rm -r /opt/HideUserAgent
/home/user # rm -r /var/lib/dpkg/HideUserAgent.*
rm: cannot remove '/var/lib/dpkg/HideUserAgent.*': No such file or directory

/home/user # dpkg -r hideuseragent
(Reading database ... 29813 files and directories currently installed.)
Removing hideuseragent ...
/var/lib/dpkg/info/hideuseragent.prerm: line 4: /opt/HideUserAgent/MicroBUserAgent.sh: not found
dpkg: error processing hideuseragent (--remove):
subprocess pre-removal script returned error exit status 127
chmod: /opt/HideUserAgent/MicroBUserAgent.sh: No such file or directory
/var/lib/dpkg/info/hideuseragent.postinst: line 6: /opt/HideUserAgent/MicroBUserAgent.sh: not found
chown: /opt/HideUserAgent/UA.txt: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
hideuseragent
/home/user #

What's wrong ?


is rm -r /var/lib/dpkg/info/hideuseragent.*

after all of this, follow the 1st post, i had the same kind of problem but i resolved with cp and chmod. Follow the 1st pos ;)

kayamagan 2011-07-23 00:43

Re: *** 4 user Agents in the QuickLaunch BAR ***
 
i have spend all my day to vanilla my n900 (du to this trouble).
but now i got a n900, faster.... and the good new is that your feature works!

plz how to remove the humain voice? should i just have to delete it from his folder?
thx


All times are GMT. The time now is 07:22.

vBulletin® Version 3.8.8