Results 1 to 10 of 17

Thread: Application icon for Linux

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Unless I am mistaken you could just include the .a and .o file and then just do the linking on the target - I recall some closed source codecs and etc worked that way...

    In your instance (executable in tar.gz) I guess you would just have to link it dynamically and hope for the best - just be warned that if any bugs arise with this setup, you cant ask for compiler messages and you may end up having a super fun time with clients... Or at least thats my experience with the last Ludum dare fiasco.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    I see, but does that means that the package needs to include the source?
    If you don't use libraries with GPL-like license(or LGPL with static linking) - then no need to include source code. For Linux rules of opening source code is the same as for other platforms

  3. #3
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537
    I do not use Linux so my suggestion could be hopelessly wrong.

    Could your executable not create the icon in the correct directory(ies) on first run? So the executable starts up, checks in the directory for the icon file, if it does not find it, creates/copies it and carries on.

    As part of your install process/instructions you could just execute the program once to create the icons.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  4. #4
    Could your executable not create the icon in the correct directory(ies) on first run?
    Can't, because writing to / needs root privileges

  5. #5
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537
    So how does an installer copy files there?
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  6. #6
    So how does an installer copy files there?
    Installing packages also needs a root privileges, but in this case system will ask user about a password. Linux and MacOS X are not a Windows where you can setup any <censored> in your system(with by default settings)

  7. #7
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Aaah, the magic of sudo...

    @carinswm: Its not just installers that can't mess with system files in Linux, viruses, little children, accidental keystrokes, hackers, spammers and etc... In linux - if you ain't got the sudo code - you ain't got acces to me system files... Your files fine, but the system files or someone else's files higher in the permission heirachy - no sudo code, no can do.

    Its a nice system when you use it every day though, and since you haven't got to worry about viruses being able to do anything, you don't have to spend any resources on an antivirus etc...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •