Paul Cercueil
c72266d771
Remove the 'Selector alias file' feature
...
Who seriously used that?
2014-07-15 14:25:17 +02:00
Paul Cercueil
92a6453ff8
Re-insert proper detection of the %f tokens for OPK apps
2014-04-18 09:10:01 +02:00
Paul Cercueil
c19e78951d
Fix launching non-OPK apps with files with special characters
2014-02-23 16:55:14 +01:00
Paul Cercueil
55a6528cde
Revert to launching in the shell for non-OPK apps
2014-02-05 16:26:00 +01:00
Paul Cercueil
a7f0fef059
linkapp.cpp: remove dead/useless code
2014-02-05 14:53:46 +01:00
Paul Cercueil
1a1f891a4d
Fix launching OPKs with a file containing spaces
2014-02-05 14:33:45 +01:00
Paul Cercueil
2ab44489a1
Execute the links directly, don't use the shell
...
This breaks one thing: the "params" option of the links must be
only one parameter (without spaces). The only way to actually
set this option being to edit the config files manually, it is
pretty safe to assume it will never contain two parameters.
2013-12-11 12:34:01 +01:00
Paul Cercueil
6ef3f3b190
Redirect to log by redefining stdout and stderr
2013-12-11 12:34:01 +01:00
Paul Cercueil
7c1af3a03b
Use 'opkrun' to execute OPK files
2013-12-11 12:34:01 +01:00
Paul Cercueil
53ba01c40a
Don't set called programs as group leaders
...
The comment of this code indicates that it is needed for
SDL apps to work correctly.
However, I don't see any valid reason for the apps we
launch to be running in a different group.
Removing it didn't make any apparent difference, so unless
I'm proven wrong, it'll stay gone from now on.
2013-12-11 12:31:47 +01:00
Paul Cercueil
31ad27f2bd
Do not try to change the permissions of the executables
2013-12-11 12:31:29 +01:00
Paul Cercueil
246fd8630c
Output log to /var/log/gmenu2x.log
2013-11-08 11:27:34 +01:00
Paul Cercueil
b73391486f
Simplify again the prototype of LinkApp as gmenu2x->input is public
2013-09-05 19:20:54 -04:00
Paul Cercueil
1ff17d83c9
Add function GMenu2X::getTouchscreen(), to simplify Link and LinkApp prototypes
2013-09-05 19:19:16 -04:00
Maarten ter Huurne
965340a39c
Fixed bug with launch screen and double buffering
...
LinkApp::drawRun() assumes the layers below are already painted when
it is called, but this was not the case. With single buffering, the
previous frame was still there so it still looked good, but with
double buffering the buffer typically contains an outdated screen.
Long term I think the launch should happen at the outermost scope,
so all destructors get a chance to run. This commit is a small step
in that direction, by exiting the main loop before launching.
2013-08-16 10:41:16 +02:00
Maarten ter Huurne
8d38decc82
Pass full path to LinkApp::launch
2013-08-16 09:46:16 +02:00
Maarten ter Huurne
d6deb29ba0
Eliminated selectedDir argument to LinkApp::launch()
2013-08-16 09:38:16 +02:00
Maarten ter Huurne
6c80a663e1
Check for empty strings using empty() instead of comparing to ""
2013-08-16 09:16:04 +02:00
Maarten ter Huurne
8472acc26c
Removed checks for manuals and screenshots in JPEG and BMP format
...
Support for loading JPEG and BMP images was removed a long time ago,
so there is no point in looking for files in those formats.
2013-08-14 13:30:17 +02:00
Maarten ter Huurne
1ffae36004
Made Surface argument to drawTopBar/drawBottomBar() mandatory
2013-08-14 11:47:29 +02:00
Maarten ter Huurne
ea85b10d31
Reduce use of HAVE_LIBOPK inside LinkApp class as well
...
In commit de30b3f9
several outside uses were removed by always defining
isOpk(), this commit does the same for LinkApp itself.
2013-08-14 11:47:29 +02:00
Maarten ter Huurne
9c497e7867
Remove "don't leave" feature
...
If the application in question daemonizes, it will continue running
no matter whether we start it with system() or execlp(). So I don't
see a reason for this feature to exist and removing it means less
code paths to worry about.
2013-08-14 11:47:28 +02:00
Maarten ter Huurne
724aefe482
Renamed ASFont class to just Font
...
Originally the font implementation was based on SFont, but it was
recently replaced by an SDL_ttf based implementation, so the name
no longer made sense.
2013-08-03 22:30:12 +02:00
Maarten ter Huurne
a9b5d8bd19
Moved most Menu::loadIcons() code into Link/LinkApp classes
...
The code still has a lot of overlap with the other methods of Link and
LinkApp, but at least it is in the same place now.
Since this was the last outside use, setIconPath() could be declared
as 'protected'.
2013-08-02 21:24:20 +02:00
Paul Cercueil
88f54e1ccc
Drop incredibly dirty and huge file FastDelegate.h
...
It's way too over-engineered for what we need to do, and we can
do much simpler using C++11.
2013-07-29 12:58:25 -04:00
Paul Cercueil
a0515ad356
Make the file selector accept all files by default
2013-07-21 15:43:41 -04:00
Paul Cercueil
a682d10657
Load the localized title and description of an OPK if available
2013-07-20 21:21:36 -04:00
Paul Cercueil
bec8d8756f
Don't prepend the mounpoint to the binary path if not inside the OPK
2013-07-19 15:25:54 -04:00
Paul Cercueil
91f381fa07
Allow an OPK to use an icon provided by the theme
2013-07-18 17:49:33 -04:00
Paul Cercueil
c58b3a535e
Update GMenu2X to use the latest libopk v1.0 API
2013-05-26 19:06:53 -04:00
Paul Cercueil
2cef732602
Fix crash occuring when an unknown MIME type is specified in OPK
2013-04-19 14:25:23 -03:00
Maarten ter Huurne
bcbedc8f40
Updated code calling opk_extract_file().
...
I changed the return type from char* to void* in libopk, now updating
the gmenu2x code to match.
2013-02-05 19:05:44 +01:00
Maarten ter Huurne
e4d78bee60
Made GMenu2X::menu private
...
There was only one outside use; turned that into a new public method
on the GMenu2X class.
2012-12-20 22:01:30 +01:00
Paul Cercueil
610b489d51
Add support of text manuals (.man.txt files) inside OPK archives
2012-12-08 04:26:48 -03:00
Paul Cercueil
c9fc163bea
Add --disable-cpufreq switch to disable clock management
2012-12-08 01:03:33 -03:00
Paul Cercueil
473949bb4f
Remove hardcoded MHz values, use the defined main/max clocks instead
2012-12-06 20:53:39 -03:00
Paul Cercueil
efdf766102
Enable support for multiple .desktop for one platform inside OPKs
2012-11-29 23:44:58 -03:00
Paul Cercueil
6629a63871
Renamed 'dingux' platform to 'a320'
...
Dingux being now replaced by OpenDingux, which covers other platforms
than the A320, the platform corresponding to the A320 is now named
accordingly.
2012-11-27 02:14:08 -03:00
Paul Cercueil
c6a83e1ed7
Open OPKs only if compatible with the current platform
2012-11-18 18:52:23 -03:00
Paul Cercueil
d4c086a64d
Add initial support for the GCW Zero
2012-11-18 18:41:20 -03:00
Paul Cercueil
77046f3553
Add support for reading manuals located inside OPK archives
2012-11-11 19:47:45 -03:00
Paul Cercueil
8d96f3c261
Update to use the latest libopk API, and simplify loadPNG
2012-11-05 18:48:48 -03:00
Paul Cercueil
0b922e97f3
For non-OPK programs, chdir() to the app's directory as well
2012-10-23 16:34:01 +02:00
Paul Cercueil
b8112d1a73
Fix a bug where having multiple MIME types would crash GMenu2X
2012-10-23 16:19:00 +02:00
Paul Cercueil
64eb86f8e8
Default the 'browser' option to 'true'.
...
This permits the 'browser' option to be saved for OPK packages
as well.
2012-10-23 06:39:51 +02:00
Paul Cercueil
dec1a8956a
Assign an icon for a given link only if it hasn't been done before
2012-10-23 06:20:03 +02:00
Paul Cercueil
c94968f533
Memorize the selector's directory as the default one for later use
...
When a app is launched with a file selected with the built-in file
selector, we memorize the directory on which the file was found,
so that a future launch of that application will directly open
that directory.
2012-10-23 05:34:21 +02:00
Paul Cercueil
a04b9e3ab3
Save changes made on the link of an OPK on the user directory.
2012-10-23 05:32:48 +02:00
Paul Cercueil
5f1cff6d0f
Build file extensions filter from the MIME types present on the OPK
...
This feature is enabled only if libxdgmime is available.
2012-10-22 23:40:09 +02:00
Paul Cercueil
e7e21b424b
Use the '%f' token to insert the selected file on the params.
...
Other tokens available are '%F', '%u' and '%U'.
It replaces the previous token '[selFile]'.
2012-10-22 23:34:33 +02:00