maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] OS2008 Personal Menu (https://talk.maemo.org/showthread.php?t=17777)

Benson 2008-03-19 22:22

Re: [Announce] OS2008 Personal Menu
 
1 Attachment(s)
Quote:

Originally Posted by speednut (Post 157115)
Very nice, thank you!
My menu is full of xmame emu'ed games now, no more long command strings that are unique for each game. :D

Is there a way I can create custom icons that Personal Menu can find and use?

Icons are just images. Screen capture, then crop and/or scale might help, or create them on your PC, or try one of the various painting apps around; mtpaint looks nice, and I used tuxpaint before mypaint and mtpaint came out.

Sketch would even work in a pinch; draw the icon larger than life, rename the something.sketch.png to something.png, crop square 160x160, scale 25%, and you've got a 40x40 icon. Likewise for any other size... See below; no need to mess with croppage.

ImageMagick, of course, is a better way, but not everyone wants ~20 MB of stuff sitting around just to play with images.

However you make it, put the icon in /usr/share/icons/hicolor/nnxnn/apps/, where nn is the icon size. Then it should work, but doesn't until you:
Code:

# gtk-update-icon-cache /usr/share/icons/hicolor/ --force
Ok, this might be useful... I'm posting some templates in a zip here; just open the appropriate one in sketch, doodle, rename, and scale.
They're sized for 26, 40, and 64 px. 64 px is also appropriate for bookmark icons, if you want to do them.

fiferboy 2008-03-19 22:52

Re: [Announce] OS2008 Personal Menu
 
Benson, the application looks in /usr/share/icons/hicolor/nnxnn/apps (Benson was correct) for icons. You might have to run gtk-update-icon-cache after as well. That should work.

Benson 2008-03-19 23:15

Re: [Announce] OS2008 Personal Menu
 
I don't have such a directory; /usr/share/icons/hicolor/ contains only:
a bunch of nnxnn/ directories
scaleable/
scalable/
icon-theme.cache
index.theme

Each of those directories seems to have one or more of apps/, devices/, filesystems/, hildon/, and mimetypes/, and the personal menu config tool has options for selecting any of those. I think the gtk-update-icon-cache was all I needed:
Code:

# gtk-update-icon-cache /usr/share/icons/hicolor/ --force

fiferboy 2008-03-19 23:29

Re: [Announce] OS2008 Personal Menu
 
Benson, I retract my comment. I shouldn't try to remember paths without my tablet at my side. At least the gtk-update-icon-cache was useful.

Benson 2008-03-19 23:42

Re: [Announce] OS2008 Personal Menu
 
I think you're still wrong! :p
It seems to look in all of
  • /usr/share/icons/hicolor/nnxnn/apps/
  • /usr/share/icons/hicolor/nnxnn/devices/
  • /usr/share/icons/hicolor/nnxnn/filesystems/
  • /usr/share/icons/hicolor/nnxnn/hildon/
  • /usr/share/icons/hicolor/nnxnn/mimetypes/
And moreover, I think nnxnn/ expands not only to the literal directories by icon size, but also to scaleable/ and/or scalable/
Not that it matters much. Put your icons where you like, update the cache, and hope it finds 'em. :D

YoDude 2008-03-23 21:19

Re: [Announce] OS2008 Personal Menu
 
The best GUI app so far...

I have read that people are trying to find a three column configuration. I have found that 2 columns with six items each @ 64 icon size is perfect for finger control.


Rather than go that route, I was wondering 2 things:

1. Could a second version of this app be recompiled with different file names; and could multiple versions be run? This way another one of the tablets default plug-ins can be eliminated.

and...

2. Is there a way from to use a bookmark so that an item can open the browser to the page specified?

fiferboy 2008-03-23 23:25

Re: [Announce] OS2008 Personal Menu
 
I am planning on having three columns be an options (you just have to make sure your application names aren't too long) for the next version.

As for bookmarks, try the command:

Code:

browser --url=http://www.google.ca
I will have to think on how it would be best to have two simultaneous instances running with different properties.

YoDude 2008-03-24 02:24

Re: [Announce] OS2008 Personal Menu
 
Quote:

Originally Posted by fiferboy (Post 159265)

As for bookmarks, try the command:

Code:

browser --url=http://www.google.ca
...

Oh that^ works just dandy... Thanks :)

I can see setting up one instance of your outstanding app just for favorite web pages and using it instead of the default "globe" plug in.

iskarion 2008-03-24 10:11

Re: [Announce] OS2008 Personal Menu
 
I'm trying to run a script from Personal Menu as root. Without success so far.

The script is loading the modules needed for NFS via /sbin/insmod and then is mounting a NFS network path via /bin/mount.
No other commands are used in the script.

As described here
http://www.internettablettalk.com/fo...6&postcount=63

I did create a file
/etc/sudoers.d/personal-menu.sudoers

With the content
user ALL = NOPASSWD: /bin/mount, /sbin/insmod, /bin/ash

and did run update-suders afterwards.

"run as root" is checked for the personal menu item but nevertheless the script doesn't run.
When switching on "run in terminal" for debugging purposes I'm just see a "password" promt in the terminal window.

Any idea what I'm doing wrong here?

qwerty12 2008-03-24 10:12

Re: [Announce] OS2008 Personal Menu
 
http://www.internettablettalk.com/fo...6&postcount=63


All times are GMT. The time now is 01:13.

vBulletin® Version 3.8.8