Author Topic: App Icon Doesn't Work  (Read 3496 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
App Icon Doesn't Work
« on: May 12, 2006, 01:53:49 pm »
This is strange. I cleanly reinstalled Opie, and then following the dual guide installed GPE.

Now from the command prompt I can switch between Opie and GPE.

In GPE I've made a gotoopie.sh script in /usr/bin

When I run it, I go to Opie. I've also made a desktop file placed it in applications folder and see the icon. The desktop file calls this script.

But when I tap it, I see the expanding box, indicating it was run, but I don't get switched to Opie. Why?

This has got to be something simple, but I can't figure it out. What have I done wrong?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
App Icon Doesn't Work
« Reply #1 on: May 12, 2006, 05:51:48 pm »
Could I somehow debug this, i.e. launch the desktop file from console, as weird as this idea might seem.

The reason is I don't know what's happening and why it ain't working when the shell script works no prob.

Any ideas?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
App Icon Doesn't Work
« Reply #2 on: May 12, 2006, 09:18:09 pm »
Quote
The reason is I don't know what's happening and why it ain't working when the shell script works no prob.
Have you made your script executable?
Code: [Select]
chmod 766 script-name

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
App Icon Doesn't Work
« Reply #3 on: May 12, 2006, 09:32:06 pm »
Quote
Have you made your script executable?
Code: [Select]
chmod 766 script-name[div align=\"right\"][a href=\"index.php?act=findpost&pid=126827\"][{POST_SNAPBACK}][/a][/div]
Yep, and the script runs. When I execute it in console, I get switched to Opie.

It's just that clicking on the icon that launches this script doesn't do anything... Weird.

It's gotta be something stupid I'm sure, since I had it working before I had to reflash. But now, nothing...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Greg2

  • Hero Member
  • *****
  • Posts: 790
    • View Profile
    • http://
App Icon Doesn't Work
« Reply #4 on: May 12, 2006, 10:26:15 pm »
Quote
When I execute it in console, I get switched to Opie.
I meant to say 'chmod 755' for your scripts... sorry. The user in Opie has root privilege but not in GPE... if that makes any difference for your problem.  

Greg

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
App Icon Doesn't Work
« Reply #5 on: May 12, 2006, 11:58:58 pm »
Quote
Quote
When I execute it in console, I get switched to Opie.
I meant to say 'chmod 755' for your scripts... sorry. The user in Opie has root privilege but not in GPE... if that makes any difference for your problem.  

Greg
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126834\"][{POST_SNAPBACK}][/a][/div]
Yep, I even thought maybe it's got something to do with ordinary user not being able to switch terminals, so tried with sudo. But still the same. From the console I can run the script and switch. But the icon doesn't do it.

But a similar icon for suspend which I created and which calls a script too runs no prob from an icon...
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
App Icon Doesn't Work
« Reply #6 on: May 15, 2006, 06:13:14 am »
Quote
Yep, I even thought maybe it's got something to do with ordinary user not being able to switch terminals, so tried with sudo. But still the same. From the console I can run the script and switch. But the icon doesn't do it.

But a similar icon for suspend which I created and which calls a script too runs no prob from an icon...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=126844\"][{POST_SNAPBACK}][/a][/div]

I made a similar script to switch to Opie and it works fine. I'll send you my files when I am at home.

I am preparing a custon package to run X11 with Opie, while not installing the full Gpe environment, and only starting X11 when required (ie not on boot). Maybe we should share experience.

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
App Icon Doesn't Work
« Reply #7 on: May 15, 2006, 06:33:28 am »
Quote
I made a similar script to switch to Opie and it works fine. I'll send you my files when I am at home.

I am preparing a custon package to run X11 with Opie, while not installing the full Gpe environment, and only starting X11 when required (ie not on boot). Maybe we should share experience.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127088\"][{POST_SNAPBACK}][/a][/div]
Yep, sounds interesting, the biggest problem when running it alongside is power-management. If you let Opie manage it, and have a display-turn-off time, then while you're in GPE it counts the time as idle, and after the limit it shuts the display off, and there's no way to turn it back on unless you get back to Opie,  which without seeing is pretty hard... So you have to reset.
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
App Icon Doesn't Work
« Reply #8 on: May 15, 2006, 08:57:57 am »
Quote
Yep, sounds interesting, the biggest problem when running it alongside is power-management. If you let Opie manage it, and have a display-turn-off time, then while you're in GPE it counts the time as idle, and after the limit it shuts the display off, and there's no way to turn it back on unless you get back to Opie,  which without seeing is pretty hard... So you have to reset.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127092\"][{POST_SNAPBACK}][/a][/div]

Yep I noticed this! I haven't dug into this yet, but I am confident this can be fixed easily.

PS: instead of reseting just ctrl+alt+backspace, kill X11, then fn+(left|right) to go back to Opie! If fn+(left|right) could work in Opie / X11 that would be simpler.
« Last Edit: May 15, 2006, 08:59:34 am by enodr »

enodr

  • Full Member
  • ***
  • Posts: 133
    • View Profile
App Icon Doesn't Work
« Reply #9 on: May 15, 2006, 02:54:52 pm »
Quote
Quote
Yep, sounds interesting, the biggest problem when running it alongside is power-management. If you let Opie manage it, and have a display-turn-off time, then while you're in GPE it counts the time as idle, and after the limit it shuts the display off, and there's no way to turn it back on unless you get back to Opie,  which without seeing is pretty hard... So you have to reset.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127092\"][{POST_SNAPBACK}][/a][/div]

Yep I noticed this! I haven't dug into this yet, but I am confident this can be fixed easily.

PS: instead of reseting just ctrl+alt+backspace, kill X11, then fn+(left|right) to go back to Opie! If fn+(left|right) could work in Opie / X11 that would be simpler.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=127105\"][{POST_SNAPBACK}][/a][/div]

This my post in Opie forum for files and howto.