Code Monkey home page Code Monkey logo

alias's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alias's Issues

Desktop validate fails

AppCenter tried to run desktop-file-validate on com.github.bartzaalberg.alias and
received the following errors:

com.github.bartzaalberg.alias.desktop

com.github.bartzaalberg.alias.desktop: hint: value "GTK;Utility;Development;" for key "Categories" in group "Desktop Entry" contains more than one main category; application might appear more than once in the application menu
com.github.bartzaalberg.alias.desktop: error: value "shortcuts;alias;commands;aliases;bash" for locale string list key "Keywords[nl]" in group "Desktop Entry" does not have a semicolon (';') as trailing character

For more information, see:

Build Information

Affects Architecture: amd64
Affects Distribution: juno
Built with the following references:

  • refs/tags/1.3.0

Package as Flatpak for elementary OS 6

As you might have heard, AppCenter is going Flatpak! For elementary OS 6, we will not longer be accepting Debian packaging, so your app will need to be updated.

We have documentation on our developer guide for writing your Flatpak manifest here: https://docs.elementary.io/develop/writing-apps/our-first-app/packaging#flatpak-manifest

Also, in case you missed it, elementary OS 6 beta 2 is now available. This is a great time to get your app packaged up as Flatpak and test that everything is working before the final release. AppCenter submission for OS 6 will be open soon, so don't delay :)

Add your stripe key to appdata

In the new version of AppCenter Dashboard, we're no longer modifying your appdata before publishing, so you'll need to add your stripe key to appdata.xml to continue to monetize your app in elementary OS 6

For your convenience, your public stripe key is:
<value key="x-appcenter-stripe">pk_live_ULl1yu0yQQGjQKQurUvg5zCB</value>

Alias should first check and then eventually offer adding new lines to .bashrc

Default eOS .bashrc file already has...

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

...code in it.
Alias should offer adding the...

#include_bash_aliases
if [ -f ~/.bash_aliases ]; then
    source ~/.bash_aliases
fi;

...lines only if they don't exist in the .bashrc file already.

Now when the .bash_aliases file got created, and I removed the additional lines in .bashrc file created by Alias app, it prompts me to add them again when I launch the app.

Commands are not in quotes

Example
Name: test
Command: ls -l

When running test in bash it results in the following error: bash: alias: -l: not found

Solution is to use "ls -l" in command, you should check whether the user has added the quotes by himself, and if not, add quotes around his command automatically.

Reboot is not required

Your application has a note "Note: Changes take effect after relogging in" which is not necessarily true. Running source ~/.bashrc in bash makes all commands runnable instantly, without unnecessary relogging.

Can't create any aliases

When attempting to create any alias, an elementary term that has Failed to execute child process “source” (No such file or directory) logged into it. When then closing the term I get this:

(io.elementary.terminal:15171): Gtk-CRITICAL **: 22:16:27.805: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook

(io.elementary.terminal:15171): Gtk-CRITICAL **: 22:16:27.836: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkNotebook

The alias is never created but is added to the list and the same issue happens when attempting to "remove" the fake alias

Update the pot file

I finished and send a pull request for Turkish translation, but pot files seems outdated.

Would you update both of them?

Cant add aliases

When I try to add a new alias pressing "Save" brings me to the main view (list of aliases) but the alias is not there.

Add Appdata and Desktop to translations

Translating appdata.xml and .desktop files will help people to know about your app in the AppCenter. For example mostly French users won't download the app if it's description is in English, 'cause they will think that the app isn't translated and won't take time to read if its not translated.

Adding/editing new alias throws error message

Any time an alias is added or edited the following error message appears:

Failed to execute child process “pantheon-terminal” (No such file or directory)

The alias is added successfully and functions in terminal as expected.
As far as I can tell, the pantheon-terminal has been renamed to io.elementary.terminal

App crashing

On each application start, I don't get any app window. And after few seconds Alias just crash.

Each time the same error message is in syslog.

Mar 1 22:42:59 valic-XPS-15-9560 kernel: [ 751.345288] Alias[6469]: segfault at 8 ip 000000000040748e sp 00007ffc3cb41550 error 4 in com.github.bartzaalberg.alias[400000+11000] Mar 1 22:43:32 valic-XPS-15-9560 kernel: [ 784.175915] Alias[6527]: segfault at 8 ip 000000000040748e sp 00007ffea25031b0 error 4 in com.github.bartzaalberg.alias[400000+11000] Mar 1 22:43:38 valic-XPS-15-9560 kernel: [ 790.529249] Alias[6541]: segfault at 8 ip 000000000040748e sp 00007ffdb9f8ef00 error 4 in com.github.bartzaalberg.alias[400000+11000] Mar 1 22:43:42 valic-XPS-15-9560 kernel: [ 793.684661] Alias[6551]: segfault at 8 ip 000000000040748e sp 00007ffe712b0c00 error 4 in com.github.bartzaalberg.alias[400000+11000] Mar 1 22:43:45 valic-XPS-15-9560 kernel: [ 796.922712] Alias[6561]: segfault at 8 ip 000000000040748e sp 00007ffcabb03340 error 4 in com.github.bartzaalberg.alias[400000+11000]

OS data
elementary OS 0.4.1 Loki
Linux 4.13.0-36-generic
GTK+ 3.18.9

Affected Alias version
0.1.0
0.0.3

Please sanitize your inputs

an alias I tried to add called echo "haww" resulted in

alias yee="echo "haww"

which is obviously a syntax error. Try to make sure the alias string starts and finishes with the right amount of " in the right position . Also, try to put a backslash (\) in front of special characters (like ").
Eg, echo "haww" -> alias yee="echo \"haww\""

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.