![]() Double click on it and add it to your desktop. Select the desklet that you want to install (one at a time) and it will appear in the right hand window. ![]() Go back to your gDesklets window and go File-Install Package. LEAVE THEM IN THEIR FORMAT, do not extract them. Save them to your home directory (I'm using /home/myusername/gdesklets to store them) Scroll around through the different categories and find a few that you like. This is their Displays&Sensors page, here is where you can get your applets. Here is what you do: Open up a browser and goto Getting and installing desklets is probably the easiest part of this entire HOWTO. Goto your gnome panel Accessories-gDesklets. Now the fun part, we get to set up our desklets! First, lets test and see if gDesklets is installed and working correctly. DO NOT INSTALL GDESKLETS DATA! the files are out of date, and won't work right with gdesklets. For anyone who is going to try this through Synaptic, you will have two gdesklets search results: gdesklets and gdesklets-data. Sudo apt-get install gdesklets (notice all the small letters) You can find out how to do that at under Howto add extra repositories () Once done, open up a terminal and type First, you need to add the universe/multiverse repositories. So, to begin, here is what your need to do: You can use it to replace your Gnome panels, or maybe add some guages to show your CPU/Mem usage, the choices are yours. Most of this information was taken from the Flatpak wiki.GDesklets is a nice little program where you can add "desklets" to your desktop that control different programs/show different stats. So, for the most useful stacktraces, make sure that you have the Debug extensions for the apps and runtimes in question installed. When you use the –devel option, flatpak automatically includes the Debug extensions for the application and runtime, if they are available. So the debug info for is in the extension. Flatpak does something similar and splits all the debug information of runtimes and apps into separate ”runtime extensions”, which by convention have. In rpm-based distributions, the debug symbols are split off into debuginfo packages. Now for the last trick: I was complaining about stacktraces without symbols at the beginning. The –devel option tells flatpak to use the sdk instead of the runtime and do some other things that make debugging in the sandbox work. And flatpak has a handy commandline option to use the sdk instead of the regular runtime: flatpak run -devel -command=sh Thankfully, for each runtime, there is a corresponding sdk, which is just like the runtime, except it includes the stuff you need to develop and debug: headers, compilers, debuggers and other useful tools. Remember that we are inside the sandbox, so we can only run what is either shipped with the app in /app/bin or with the runtime in /usr/bin. This is great, because we can now launch our app under gdb (note that the application gets installed in the /app prefix): $ gdb /app/bin/recipesĮxcept… this fails because there is no gdb. Running this command, you’ll end up with a shell prompt ”inside” the recipes sandbox. Here is how you do that: flatpak run -command=sh What happens behind the scenes here is that flatpak finds the metadata for, determines which runtime it needs, sets up the sandbox by mounting the app in /app and the runtime in /usr, does some more sandboxy stuff, and eventually launches the app.įirst problem for bug reporting: we want to run the app under gdb to get a stacktrace when it crashes. But lets assume you’re launching flatpak from the commandline. ![]() Well, that’s not quite true the ”normal” way to launch the Flatpak is just the same as launching a non-Flatpak app: click on the icon, or hit the Super key, type recipes, hit Enter. Normally, you run your Flatpak app like this: flatpak run This post is a quick attempt to spread some basics about Flatpak debugging. But how does one create a useful bug report when something goes wrong in a Flatpak sandbox ? Some of the stacktraces I’ve seen have not been very useful, since they are lacking symbols. Since I’ve been asking people to try the recipes app with Flatpak, I can’t complain too much if I get bug reports back.
0 Comments
Leave a Reply. |