Coder Social home page Coder Social logo

ubports / ubuntu-app-launch Goto Github PK

View Code? Open in Web Editor NEW
1.0 6.0 3.0 11.63 MB

Moved to https://gitlab.com/ubports/core/lomiri-app-launch

Home Page: https://gitlab.com/ubports/core/lomiri-app-launch

License: GNU General Public License v3.0

CMake 5.53% C 19.03% Shell 1.42% C++ 73.95% QML 0.07%

ubuntu-app-launch's People

Contributors

apokorny avatar cjwatson avatar ckerr avatar didrocks avatar dobey avatar doniks avatar fredldotme avatar kenvandine avatar larryprice avatar lool avatar mardy avatar mariogrip avatar martinpitt avatar mikix avatar ogra1 avatar peat-psuwit avatar robert-ancell avatar seb128 avatar sil2100 avatar ted-gould avatar townsend2010 avatar z3ntu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ubuntu-app-launch's Issues

Remove flooding log file pattern for push helpers

Currently any output of a push helper process is logged into a log file with the pattern untrusted-helper-push-helper:<unique_number>:<appid>.log
(At least seen on TELEports)
The issue here is that those files are never cleaned up by logrotate since they contain a unique number which makes logrotate think that those are indeed independent files.
So far it was not an issue since the push helpers of TELEports and Fluffychat did not log anything, but recently a Telegram server change made the pushhelper to log an error. Some users have hundreds of those files in their .cache directory, maybe even thousands.

If property-service is not installed, ubuntu-app-launch echoes an error into every app log

If com.canonical.PropertyService is not available on the system, the following error appears in every app's log upon its close:

Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.PropertyService was not provided by any .service files

This is likely caused by the check for developer mode in the post-stop script of every job, which is used to see if the log should be kept or not: https://github.com/ubports/ubuntu-app-launch/search?q=com.canonical.propertyservice&unscoped_q=com.canonical.propertyservice

We might need to find a new way to store the "developer mode" switch so it can be accessed when the device does not have Android properties.

redefinition of 'struct unity::util::internal::GlibDeleter<char>'

Same as ubports/unity-api#4

Now fails to build on Arch, bionic branch:

In file included from /home/vanyasem/Projects/AUR/_Unity8/_Unity8-Arch/ubuntu-app-launch-git/src/ubuntu-app-launch/libubuntu-app-launch/ubuntu-app-launch.cpp:42:
/usr/include/unity/util/GlibMemory.h:213:1: error: redefinition of 'struct unity::util::internal::GlibDeleter<char>'
 UNITY_UTIL_DEFINE_GLIB_SMART_POINTERS(gchar, g_free)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/glib-autocleanups.h:90:1: note: previous definition of 'struct unity::util::internal::GlibDeleter<char>'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GRefString, g_ref_string_release)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/vanyasem/Projects/AUR/_Unity8/_Unity8-Arch/ubuntu-app-launch-git/src/ubuntu-app-launch/libubuntu-app-launch/ubuntu-app-launch.cpp:42:
/usr/include/unity/util/GlibMemory.h:213:1: error: redefinition of 'struct unity::util::internal::GlibDeleter<char>'
 UNITY_UTIL_DEFINE_GLIB_SMART_POINTERS(gchar, g_free)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/glib/glib-autocleanups.h:90:1: note: previous definition of 'struct unity::util::internal::GlibDeleter<char>'
 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GRefString, g_ref_string_release)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

add a Readme

For newcomers, provide a quick Readme file to answer:

  • What is the purpose of this repository ?
  • How can i test / run ?
  • How can i contribute ?
  • How can i build and hack ?

no auto completion

sometimes it is helpful to start an app from terminal. (e.g. right now the libertine scope has issues and doesn't show icons)

it is possible to start from terminal, but it is a bit cumbersome, because of the non-intuitive appids

with the below completion script, one has autocompletion of app ids.

/usr/share/bash-completion/completions/ubuntu-app-launch

# -*- shell-script -*-

function _ubuntu-app-launch()
{
    local cur
    cur="${COMP_WORDS[COMP_CWORD]}"
    COMPREPLY=( $(compgen -W "$(ubuntu-app-launch-appids)" -- ${cur} ) )
} && complete -F _ubuntu-app-launch ubuntu-app-launch

It works if I copy it directly onto my device, but I don't really know where to stick it into the source code to have it packaged and installed.

Hard dependency on libertine and xmir

Currently there is a hard dependency on libertine and xmir, and libertine only supports creating an Ubuntu chroot on an Ubuntu system that is of the same release. This means anyone porting the Unity 8 stack to other distributions, must also build and ship libertine, even though it will not work.

Making libertine generic and usable on any distribution, and also support containers of those distributions, would be an extremely large amount of work. We should instead make libertine an optional dependency, so that we can still ship it on Ubuntu builds, but others can avoid it. As Xmir will eventually be replaced by Xwayland, this would also be a step toward supporting that.

Depends on systemd

For postmarketOS we will need a separate implementation for libubuntu-app-launch/jobs-systemd.{cpp,h}

Fails to compile with GCC >= 7

/build/ubuntu-app-launch-git/src/ubuntu-app-launch/utils/xmir-helper.c: In function ‘main’:
/build/ubuntu-app-launch-git/src/ubuntu-app-launch/utils/xmir-helper.c:111:34: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=]
  snprintf(displaynumber, 16, ":%s", readbuf);
                                  ^
/build/ubuntu-app-launch-git/src/ubuntu-app-launch/utils/xmir-helper.c:111:2: note: ‘snprintf’ output between 2 and 17 bytes into a destination of size 16
  snprintf(displaynumber, 16, ":%s", readbuf);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.